std::vector<tag_t>& face
时间: 2024-01-21 12:02:47 浏览: 189
<<和>>的重载-VC++2010学习
引用\[1\]:关键报错信息 /usr/local/include/c++/8.2.0/bits/basic_string.tcc:1067:1: error: cannot call member function 'void std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() \[with _CharT = char32_t; _Traits = std:: char_traits<char32_t>; _Alloc = std::allocator<char32_t>\]' without object ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/miniconda3/envs/motr/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1423, in _run_ninja_build check=True) File "/home/miniconda3/envs/motr/lib/python3.7/subprocess.py", line 512, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '\['ninja', '-v'\]' returned non-zero exit status 1. 解决方式 参考: https://blog.csdn.net/weixin_45328592/article/details/114646355 。
问题: std::vector<tag_t>& face是什么意思?
回答: std::vector<tag_t>& face是一个引用类型的参数,它是一个指向std::vector<tag_t>类型对象的引用。这个参数的类型是std::vector<tag_t>,它是一个动态数组,可以存储多个tag_t类型的元素。而&符号表示这是一个引用,它允许我们在函数内部修改原始的std::vector<tag_t>对象。
#### 引用[.reference_title]
- *1* [编译MOTR的时候,报错:error: cannot call member function ‘void std::basic_string<_CharT, _Traits, ...](https://blog.csdn.net/qq_29695701/article/details/118548238)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文