Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nameof.hpp(1056,36): error C2338: nameof::nameof_enum requires enum implementation and valid max and min. #69

Open
GL-Yniar opened this issue Nov 21, 2024 · 0 comments

Comments

@GL-Yniar
Copy link

GL-Yniar commented Nov 21, 2024

#include
#include "nameof.hpp"

enum class TestEnum { kBase = 10000, kFirst, kSecond, kEnd = 19999 };

int main() {
auto str = nameof::nameof_enum(TestEnum::kBase);

return 0;
}

1>enum.cpp
1>D:\Conan\ConanPath.conan\data\nameof\0.10.4__\package\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9\include\nameof.hpp(1056,36): error C2338: nameof::nameof_enum requires enum implementation and valid max and min.
1>D:\Code\TestCode\test\enum.cpp(7): message : 查看对正在编译的函数 模板 实例化“std::basic_string_view<char,std::char_traits> nameof::nameof_enum(E) noexcept”的引用
1> with
1> [
1> E=TestEnum
1> ]
1>已完成生成项目“test.vcxproj”的操作 - 失败。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant