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()
相關文章
相關標籤/搜索