[Error] cannot pass objects of non-trivially-copyable type ‘std::string {aka class std::basic_string}’ through ‘…’
原因:
使用了printf作为输出字符串的方式
解决方法
cout << "ssss";
[Error] cannot pass objects of non-trivially-copyable type ‘std::string {aka class std::basic_string}’ through ‘…’
使用了printf作为输出字符串的方式
cout << "ssss";