1
0
forked from boostorg/mp11

Use push_macro/pop_macro to guard against the macro I from <complex.h>. Fixes #88.

This commit is contained in:
Peter Dimov
2023-12-21 21:55:24 +02:00
parent ed049f2741
commit 20fff14a90
5 changed files with 45 additions and 0 deletions

View File

@@ -11,6 +11,11 @@
#include <boost/mp11/version.hpp>
#include <cstddef>
#if defined(_MSC_VER) || defined(__GNUC__)
# pragma push_macro( "I" )
# undef I
#endif
#if defined(__has_builtin)
# if __has_builtin(__make_integer_seq)
# define BOOST_MP11_HAS_MAKE_INTEGER_SEQ
@@ -109,4 +114,8 @@ template<class... T> using index_sequence_for = make_integer_sequence<std::size_
} // namespace mp11
} // namespace boost
#if defined(_MSC_VER) || defined(__GNUC__)
# pragma pop_macro( "I" )
#endif
#endif // #ifndef BOOST_MP11_INTEGER_SEQUENCE_HPP_INCLUDED