[boost::enable_if] Support Boost versions < 1.56

This commit is contained in:
Scott Giese
2019-02-05 12:20:06 -06:00
committed by Automatic Release Builder
parent e4b58b65f3
commit 75b5a927c8
3 changed files with 13 additions and 1 deletions

View File

@@ -24,7 +24,11 @@
#include <simgear/structure/map.hxx>
#include <boost/iterator/iterator_facade.hpp>
#if BOOST_VERSION >= 105600
#include <boost/core/enable_if.hpp>
#else
#include <boost/utility/enable_if.hpp>
#endif
namespace nasal
{

View File

@@ -56,7 +56,11 @@ namespace boost {
}
#else
# include <boost/type_traits/is_enum.hpp>
# include <boost/core/enable_if.hpp>
#if BOOST_VERSION >= 105600
#include <boost/core/enable_if.hpp>
#else
#include <boost/utility/enable_if.hpp>
#endif
# include <simgear/debug/logstream.hxx>
# include <simgear/math/SGMathFwd.hxx>

View File

@@ -22,7 +22,11 @@
#include "SGSharedPtr.hxx"
#include <boost/type_traits/is_base_of.hpp>
#if BOOST_VERSION >= 105600
#include <boost/core/enable_if.hpp>
#else
#include <boost/utility/enable_if.hpp>
#endif
#ifdef _MSC_VER
# pragma warning(push)