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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user