exception in SF.7 for issue 1440, allow std::literals (#1457)

* exception in SF.7 for issue 1440, allow std::literals

* PR feedback

* add UDLs to spelling dictionary

* put in alpha order
This commit is contained in:
Chris Guzak 2019-08-01 11:16:46 -07:00 committed by Herb Sutter
parent e7cdce445a
commit 2895429f55
2 changed files with 7 additions and 0 deletions

View File

@ -18881,6 +18881,12 @@ Doing so takes away an `#include`r's ability to effectively disambiguate and to
copy(/*...*/); // now overloads local ::copy and std::copy, could be ambiguous
}
##### Note
An exception is `using namespace std::literals;`. This is necessary to use string literals
in header files and given [the rules](http://eel.is/c++draft/over.literal) - users are required
to name their own UDLs `operator""_x` - they will not collide with the standard library.
##### Enforcement
Flag `using namespace` at global scope in a header file.

View File

@ -578,6 +578,7 @@ typesafe
UB
u1
u2
UDLs
unaliased
uncompromised
underuse