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.
%{
#if __cplusplus < 201103
#include <boost/array.hpp>
namespace std {
using boost::array;
}
#else
// Use C++11 array as this is unfortunately is sometimes included by <algorithm>
#if __cplusplus >= 201103 || (defined(_MSC_VER) && _MSC_VER >= 1900)
// Use C++11 array as this is unfortunately sometimes included by <algorithm>
#include <array>
namespace boost {
using std::array;
}
#else
#include <boost/array.hpp>
namespace std {
using boost::array;
}
#endif
%}
namespace boost {