When using the line
using std::literals::chrono_literals::operator""s;
in g++ 6.3.0, the compiler issues a warning stating:
warning: literal operator suffixes not preceded by '_' are reserved for future standardization
using std::literals::chrono_literals::operator""s;
A similar warning is also issued in MSVS. However, clang 3.8.0 issues no such warning.
Since operator""s
is defined by the standard for the chrono library shouldn't this not issue a warning since we are just importing the name and not defining one?
Arguably, the wording is clear enough on this—[over.literal]/1:
This can be interpreted as referring to (UDL operator) declarations whose "name" is a literal-operator-id—which of course excludes your case, since literal-operator-ids are unqualified. Same goes for [reserved.names]/2, where the “context”s are declarations of user-defined literal operators.