#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”的操作 - 失败。