1 static_assert 2 std::nothrow 3 std::ref() 4 std::string 1 static_assert 执行编译时断言检查 语法 static_assert ( bool_constexpr , string ) (since C++11) 解释 bool_constexpr一个布尔常量表达式进行评估 string字符串文字,会出现编译错误,如果bool_constexpr是假的 //调试代码,迅速找出代码错在哪一行 #include <iostrea