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

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

解决方法:

在使用时候 加入c_str()

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

相关文章:

  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2022-03-07
  • 2021-06-17
  • 2022-12-23
  • 2022-03-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-23
  • 2022-12-23
  • 2021-12-30
相关资源
相似解决方案