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:
Joaquín M. López Muñoz 2006-06-26 06:45:14 +00:00
parent c00b913ab3
commit d1c1e4d227

View File

@ -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
}
};