From 2895429f5592d108959668cc75aa85c2561bd7eb Mon Sep 17 00:00:00 2001 From: Chris Guzak Date: Thu, 1 Aug 2019 11:16:46 -0700 Subject: [PATCH] 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 --- CppCoreGuidelines.md | 6 ++++++ scripts/hunspell/isocpp.dic | 1 + 2 files changed, 7 insertions(+) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index bb95a53..86c79d2 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -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. diff --git a/scripts/hunspell/isocpp.dic b/scripts/hunspell/isocpp.dic index 29bec28..f5a9c18 100644 --- a/scripts/hunspell/isocpp.dic +++ b/scripts/hunspell/isocpp.dic @@ -578,6 +578,7 @@ typesafe UB u1 u2 +UDLs unaliased uncompromised underuse