mirror of
https://github.com/boostorg/multi_array.git
synced 2025-05-11 21:33:52 +00:00
made sure templatized overload version of reindex is not unintendedly selected in SFINAE-lacking compilers due to integral conversions
[SVN r34406]
This commit is contained in:
parent
c00b913ab3
commit
d1c1e4d227
@ -49,6 +49,7 @@
|
||||
|
||||
#include "boost/test/minimal.hpp"
|
||||
|
||||
#include <boost/config.hpp> /* BOOST_NO_SFINAE */
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
@ -239,8 +240,12 @@ struct null_modifier {
|
||||
struct set_index_base_modifier {
|
||||
template <typename Array>
|
||||
void modify(Array& A) const {
|
||||
#ifdef BOOST_NO_SFINAE
|
||||
typedef boost::multi_array_types::index index;
|
||||
A.reindex(1);
|
||||
A.reindex(index(1));
|
||||
#else
|
||||
A.reindex(1);
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user