// Copyright 2015-2017 Hans Dembinski // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt // or copy at http://www.boost.org/LICENSE_1_0.txt) #include #include #include #include #include #include #include #include #include "utility_meta.hpp" using namespace boost::histogram; struct growing_axis { auto update(int) { return std::make_pair(0, 0); } }; int main() { { using G = growing_axis; using I = axis::integer<>; using A = std::tuple; using B = std::vector; using C = std::vector>; using D = std::tuple; using E = std::vector; using F = std::vector>; BOOST_TEST_TRAIT_TRUE((detail::has_growing_axis)); BOOST_TEST_TRAIT_TRUE((detail::has_growing_axis)); BOOST_TEST_TRAIT_TRUE((detail::has_growing_axis)); BOOST_TEST_TRAIT_FALSE((detail::has_growing_axis)); BOOST_TEST_TRAIT_FALSE((detail::has_growing_axis)); BOOST_TEST_TRAIT_FALSE((detail::has_growing_axis)); } return boost::report_errors(); }