1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-19 01:04:20 +00:00

Add MAGIC_ENUM_USE_STD_MODULE option to use standard library module. (#350)

This commit is contained in:
LEE KYOUNGHEON 2024-05-28 06:17:33 +09:00 committed by GitHub
parent 801c68bdc9
commit db0b726c05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 32 additions and 0 deletions

View file

@ -36,6 +36,7 @@
#define MAGIC_ENUM_VERSION_MINOR 9
#define MAGIC_ENUM_VERSION_PATCH 5
#ifndef MAGIC_ENUM_USE_STD_MODULE
#include <array>
#include <cstddef>
#include <cstdint>
@ -43,11 +44,13 @@
#include <limits>
#include <type_traits>
#include <utility>
#endif
#if defined(MAGIC_ENUM_CONFIG_FILE)
# include MAGIC_ENUM_CONFIG_FILE
#endif
#ifndef MAGIC_ENUM_USE_STD_MODULE
#if !defined(MAGIC_ENUM_USING_ALIAS_OPTIONAL)
# include <optional>
#endif
@ -57,6 +60,7 @@
#if !defined(MAGIC_ENUM_USING_ALIAS_STRING_VIEW)
# include <string_view>
#endif
#endif
#if defined(MAGIC_ENUM_NO_ASSERT)
# define MAGIC_ENUM_ASSERT(...) static_cast<void>(0)