为了使用 `
这是什么原因?
std::string
` 的 operator""s
,您需要执行 using namespace std::string_literals
。但是,未以 _
开头的用户自定义字面值是保留的,因此可能的冲突不能成为借口。另一个 operator""s
来自于 std::chrono
,但那是针对 int 字面值的,因此也不存在冲突。这是什么原因?