Skip to content

VS2022报错 #3

@wuke32767

Description

@wuke32767

VS2022可以在C++17下运行,但在C++20下报错。报错信息:
\HeLangCppMetaImpl\example\test.cpp(70,13): error C7595: “helang::meta::detail::u8_impl<1>::operator +”: 对即时函数的调用不是常量表达式
\HeLangCppMetaImpl\example\test.cpp(70,15): message : 因读取超过生命周期的变量而失败
\HeLangCppMetaImpl\example\test.cpp(70,15): message : 请参见“b”的用法
每一个"+"和"-"均有此错误。

\HeLangCppMetaImpl\example\test.cpp(99,3): error C2672: “helang::meta::println”: 未找到匹配的重载函数
\HeLangCppMetaImpl\include\helang-meta/helang-meta.hpp(27,13): message : 可能是“void helang::meta::println(helang::meta::u8<vals...>)”
\HeLangCppMetaImpl\example\test.cpp(99,3): message : “void helang::meta::println(helang::meta::u8<vals...>)”: 无法从“int”推导出“helang::meta::u8<vals...>”的 模板 参数

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions