搜索内容

包含标签:auto 的文章
  • C++ 如何确定这应该是 string_view?

    考虑以下代码: #include <optional> #include <string_view> int main() { std::optional<std::string_view> opt { "abc" }; std……
    阿喜 问答 2022年8月17日
  • C++17、LNK2019、C1001 中的 C++14 错误

    有一个非常简单的 3 文件源。 用cl.exe编译。 使用/std:c++17编译时会出现c++14错误(错误 C3533:参数不能具有包含 'auto' 的类型)。 使用/std:c++20它编译……
    阿喜 问答 2022年8月10日