diff --git a/src/python/histogram.cpp b/src/python/histogram.cpp index 5761cd12..f5f3d838 100644 --- a/src/python/histogram.cpp +++ b/src/python/histogram.cpp @@ -16,7 +16,6 @@ #include #include #include -#include #ifdef HAVE_NUMPY #include namespace np = boost::python::numpy; @@ -163,7 +162,7 @@ bp::object histogram_init(bp::tuple args, bp::dict kwargs) { for (unsigned i = 0; i < dim; ++i) { bp::object pa = args[i + 1]; bool success = false; - mpl::for_each( + boost::mp11::mp_for_each( axes_appender(pa, axes, success) ); if (!success) { diff --git a/test/histogram_test.cpp b/test/histogram_test.cpp index 1820be86..fd20d278 100644 --- a/test/histogram_test.cpp +++ b/test/histogram_test.cpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include #include @@ -30,7 +30,7 @@ using namespace boost::histogram; using namespace boost::histogram::literals; // to get _c suffix -namespace mpl = boost::mpl; +namespace mp11 = boost::mp11; template auto make_histogram(static_tag, Axes &&... axes) @@ -146,7 +146,7 @@ template void run_tests() { h(0, 0); auto h2 = decltype(h)(h); BOOST_TEST(h2 == h); - auto h3 = static_histogram, axis::integer<>>, + auto h3 = static_histogram, axis::integer<>>, array_storage>(h); BOOST_TEST_EQ(h3, h); } @@ -163,7 +163,7 @@ template void run_tests() { // test self-assign h2 = h2; BOOST_TEST_EQ(h, h2); - auto h3 = static_histogram, axis::integer<>>, + auto h3 = static_histogram, axis::integer<>>, array_storage>(); h3 = h; BOOST_TEST_EQ(h, h3); @@ -940,7 +940,11 @@ int main() { // init { - auto v = std::vector>(); + auto v = std::vector< + axis::any< + axis::regular<>, axis::integer<> + > + >(); v.push_back(axis::regular<>(4, -1, 1)); v.push_back(axis::integer<>(1, 7)); auto h = make_dynamic_histogram(v.begin(), v.end());