Generally, using namespace
in global scope is considered as a bad practice. However, according to cppreference, the identifiers not starting with underscore(_
) are reserved for standard library in the case of user-defined literals.
the identifier to use as the ud-suffix for the user-defined literals that will call this function. Must begin with the underscore _: the suffixes that do not begin with the underscore are reserved for the literal operators provided by the standard library.
Does that mean I can safely do using namespace std::literals;
in global scope?