mirror of
https://github.com/boostorg/histogram.git
synced 2025-05-11 21:24:14 +00:00
less warnings on MSVC
This commit is contained in:
parent
92e39de67d
commit
701221daee
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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>));
|
||||
|
Loading…
x
Reference in New Issue
Block a user