Forward declare Dinkumware Stdlib's "struct _Nil" in is_pair.hpp instead of pair.hpp

This commit is contained in:
Ion Gaztañaga
2022-01-04 16:29:59 +01:00
parent 237c27a39f
commit 88b4cf09d9
2 changed files with 9 additions and 13 deletions

View File

@ -25,6 +25,14 @@
#include <boost/container/detail/workaround.hpp>
#include <boost/container/detail/std_fwd.hpp>
#if defined(BOOST_MSVC) && (_CPPLIB_VER == 520)
//MSVC 2010 tuple marker
namespace std { namespace tr1 { struct _Nil; }}
#elif defined(BOOST_MSVC) && (_CPPLIB_VER == 540)
//MSVC 2012 tuple marker
namespace std { struct _Nil; }
#endif
namespace boost {
namespace tuples {

View File

@ -77,19 +77,7 @@ struct is_tuple_null<boost::tuples::null_type>
static const bool value = true;
};
}}}
#if defined(BOOST_MSVC) && (_CPPLIB_VER == 520)
//MSVC 2010 tuple marker
namespace std { namespace tr1 { struct _Nil; }}
#elif defined(BOOST_MSVC) && (_CPPLIB_VER == 540)
//MSVC 2012 tuple marker
namespace std { struct _Nil; }
#endif
namespace boost {
namespace container {
} //namespace detail {
#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED