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

@@ -12,6 +12,11 @@
#include <boost/mp11/utility.hpp>
#include <cstddef>
#if defined(_MSC_VER) || defined(__GNUC__)
# pragma push_macro( "I" )
# undef I
#endif
namespace boost
{
namespace mp11
@@ -108,4 +113,8 @@ template<class Q, class... T> using mp_bind_q = mp_bind<Q::template fn, T...>;
} // namespace mp11
} // namespace boost
#if defined(_MSC_VER) || defined(__GNUC__)
# pragma pop_macro( "I" )
#endif
#endif // #ifndef BOOST_MP11_BIND_HPP_INCLUDED