diff --git a/include/boost/histogram/detail/axis_visitor.hpp b/include/boost/histogram/detail/axis_visitor.hpp index ee63562b..c2879dff 100644 --- a/include/boost/histogram/detail/axis_visitor.hpp +++ b/include/boost/histogram/detail/axis_visitor.hpp @@ -16,10 +16,10 @@ #include #include #include -#include #include #include #include +#include namespace boost { namespace histogram { diff --git a/include/boost/histogram/storage/array_storage.hpp b/include/boost/histogram/storage/array_storage.hpp index 7422e779..6d9abdef 100644 --- a/include/boost/histogram/storage/array_storage.hpp +++ b/include/boost/histogram/storage/array_storage.hpp @@ -9,7 +9,7 @@ #include #include -#include +#include #include #include diff --git a/src/python/axis.cpp b/src/python/axis.cpp index c0ebc010..4c83b3ac 100644 --- a/src/python/axis.cpp +++ b/src/python/axis.cpp @@ -145,7 +145,7 @@ template python::str axis_get_label(const T& t) { #ifdef HAVE_NUMPY template python::object axis_array_interface(const Axis& axis) { - using T = typename decay::type; + using T = typename std::decay::type; python::dict d; auto shape = python::make_tuple(axis.size()+1); d["shape"] = shape; diff --git a/src/python/utility.hpp b/src/python/utility.hpp index 72bd3630..f96cf740 100644 --- a/src/python/utility.hpp +++ b/src/python/utility.hpp @@ -8,7 +8,7 @@ #define _BOOST_HISTOGRAM_PYTHON_UTILITY_HPP_ #include -#include +#include #include namespace boost { @@ -16,14 +16,12 @@ namespace python { template str dtype_typestr() { str s; - if (is_unsigned::value) - s = "|u"; - else if (is_signed::value) - s = "|i"; - else if (is_floating_point::value) + if (std::is_floating_point::value) s = "|f"; + else if (std::is_integral::value) + s = std::is_unsigned::value ? "|u" : "|i"; else - throw std::invalid_argument("T must be an arithmetic type"); + throw std::invalid_argument("T must be a builtin arithmetic type"); s += str(sizeof(T)); return s; }