boost::array test fix when using C++11

This commit is contained in:
William S Fulton 2015-11-28 18:49:22 +00:00
commit 80a8a7f0d8

View file

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