boost::array test fix when using C++11
This commit is contained in:
parent
ed044e4b8c
commit
80a8a7f0d8
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue