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

@@ -26,6 +26,11 @@
#include <type_traits>
#include <utility>
#if defined(_MSC_VER) || defined(__GNUC__)
# pragma push_macro( "I" )
# undef I
#endif
namespace boost
{
namespace mp11
@@ -1374,4 +1379,8 @@ template<class L, class S> using mp_join = mp_apply<mp_append, mp_intersperse<L,
} // namespace mp11
} // namespace boost
#if defined(_MSC_VER) || defined(__GNUC__)
# pragma pop_macro( "I" )
#endif
#endif // #ifndef BOOST_MP11_ALGORITHM_HPP_INCLUDED