less warnings on MSVC

This commit is contained in:
Hans Dembinski 2018-07-22 16:29:08 +02:00
parent 92e39de67d
commit 701221daee
2 changed files with 6 additions and 6 deletions

View File

@ -361,7 +361,7 @@ private:
void impl(std::true_type, const Axis& a) const {
const auto a_size = a.size();
const auto a_shape = a.shape();
const auto j = a.index(val);
const auto j = a.index(static_cast<typename Axis::value_type>(val));
detail::lin(idx, stride, a_size, a_shape, j);
}

View File

@ -37,16 +37,16 @@ int main() {
struct no_methods {};
struct value_method {
void value();
void value() {}
};
struct variance_method {
void variance();
void variance() {}
};
struct value_and_variance_methods {
void value();
void variance();
void value() {}
void variance() {}
};
BOOST_TEST_TRAIT_FALSE((has_variance_support<no_methods>));
@ -59,7 +59,7 @@ int main() {
{
struct no_methods {};
struct lower_method {
void lower(int);
void lower(int) {}
};
BOOST_TEST_TRAIT_FALSE((has_method_lower<no_methods>));