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:
parent
801c68bdc9
commit
db0b726c05
5 changed files with 32 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue