When using string
using std::literals::chrono_literals::operator""s;
in g ++ 6.3.0, the compiler generates a warning:
warning: operator literal suffixes that are 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 does not raise such a warning.
Since operator""s is defined by the standard for the chrono library, this should not cause a warning, since we just import the name and not define it?
c ++ language-lawyer reserved-words using-directives user-defined-literals
Nathan oliver
source share