1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-09 23:34:23 +00:00

update doc

fix MAGIC_ENUM_NO_CHECK_SUPPORT
This commit is contained in:
neargye 2019-10-04 13:58:08 +05:00
parent 2a259f1b55
commit 00bd8528ce
2 changed files with 2 additions and 1 deletions

View file

@ -20,6 +20,7 @@
* Before use, read the [limitations](limitations.md) of functionality.
* To check is magic_enum supported compiler use macro `MAGIC_ENUM_SUPPORTED` or constexpr constant `magic_enum::is_magic_enum_supported`.
If magic_enum used on unsupported compiler, occurs the compilation error. To suppress error define macro `MAGIC_ENUM_NO_CHECK_SUPPORT`.
## `enum_cast`
```cpp

View file

@ -84,7 +84,7 @@ namespace detail {
template <typename T>
struct supported final
#if defined(MAGIC_ENUM_SUPPORTED) && MAGIC_ENUM_SUPPORTED
#if defined(MAGIC_ENUM_SUPPORTED) && MAGIC_ENUM_SUPPORTED || defined(MAGIC_ENUM_NO_CHECK_SUPPORT)
: std::true_type {};
#else
: std::false_type {};