error: cannot pass objects of non-trivially-copyable type ‘std::string {aka class std::basic_string

来源:互联网 发布:linux运维最佳实践 pdf 编辑:程序博客网 时间:2024/06/05 15:13

 报错cannot pass objects of non-trivially-copyable type 'std::string {aka struct std::basic_string<char>}' through '...'

解决方法:

在使用时候 加入c_str()


阅读全文
0 0
原创粉丝点击