From 7707d08ff52f3d03682d87a5ef6db4c628c5fb90 Mon Sep 17 00:00:00 2001 From: neargye Date: Sat, 24 Aug 2019 14:16:24 +0500 Subject: [PATCH] error if unsupported compiler --- include/magic_enum.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/magic_enum.hpp b/include/magic_enum.hpp index b6eb00a..8e20dc1 100644 --- a/include/magic_enum.hpp +++ b/include/magic_enum.hpp @@ -132,6 +132,7 @@ template #elif defined(_MSC_VER) return pretty_name({__FUNCSIG__, sizeof(__FUNCSIG__) - 17}); #else +# error "magic_enum: Unsupported compiler (https://github.com/Neargye/magic_enum#compiler-compatibility)." return {}; // Unsupported compiler. #endif }