Fix boost::array test for Visual Studio

Visual Studio doesn't set __cplusplus correctly when supporting c++11
This commit is contained in:
William S Fulton 2015-11-29 19:42:35 +00:00
commit 3bfffab9f9

View file

@ -8,17 +8,17 @@
// and pointers to boost::array are the same. // and pointers to boost::array are the same.
%{ %{
#if __cplusplus < 201103 #if __cplusplus >= 201103 || (defined(_MSC_VER) && _MSC_VER >= 1900)
#include <boost/array.hpp> // Use C++11 array as this is unfortunately sometimes included by <algorithm>
namespace std {
using boost::array;
}
#else
// Use C++11 array as this is unfortunately is sometimes included by <algorithm>
#include <array> #include <array>
namespace boost { namespace boost {
using std::array; using std::array;
} }
#else
#include <boost/array.hpp>
namespace std {
using boost::array;
}
#endif #endif
%} %}
namespace boost { namespace boost {