• 2024-08-30libtorch 版本 Pre-cxx11 ABI 和 cxx11 ABI 区别
    libtorch的Pre-CXX11ABI和CXX11ABI版本主要区别在于它们使用的C++ABI(ApplicationBinaryInterface)。ABI定义了编译后的二进制文件在不同模块之间的接口。C++11引入了一些新的语言特性,导致ABI发生变化,因此有两个版本的ABI来保持与现有代码的兼容性。主要区别:AB
  • 2024-06-03error:connot bind non-const lvalue reference of type ‘std::__cxx11::string& {aka std::cxx11::basic_s
    实习记录犯错日志:std::stringutf8_str=gbk_to_utf8((char*)struCIDAlarmInfo.sCIDCode);代码这样写则报如题所示的错误,error:connotbindnon-constlvaluereferenceoftype'std::__cxx11::string&{akastd::cxx11::basic_string<char>&}toanrvalueoftype'