为了你的使用operator""s而std::string必须这样做using namespace std::string_literals.但是不_保留用户定义的文字是保留的,因此可能的冲突不能成为借口.另一个operator""s来自std::chrono但是那是int文字,所以也没有冲突.
operator""s
std::string
using namespace std::string_literals
_
std::chrono
这是什么原因?
c++ c++14
c++ ×1
c++14 ×1