mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
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:
parent
e7cdce445a
commit
2895429f55
|
@ -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.
|
||||
|
|
|
@ -578,6 +578,7 @@ typesafe
|
|||
UB
|
||||
u1
|
||||
u2
|
||||
UDLs
|
||||
unaliased
|
||||
uncompromised
|
||||
underuse
|
||||
|
|
Loading…
Reference in New Issue
Block a user