1 // Copyright 2019 Hans Dembinski 2 // 3 // Distributed under the Boost Software License, Version 1.0. 4 // (See accompanying file LICENSE_1_0.txt 5 // or copy at http://www.boost.org/LICENSE_1_0.txt) 6 7 #ifndef BOOST_HISTOGRAM_DETAIL_PRIORITY_HPP 8 #define BOOST_HISTOGRAM_DETAIL_PRIORITY_HPP 9 10 #include <cstdint> 11 12 namespace boost { 13 namespace histogram { 14 namespace detail { 15 16 // priority is used to priorise ambiguous overloads 17 18 template <std::size_t N> 19 struct priority : priority<(N - 1)> {}; 20 21 template <> 22 struct priority<0> {}; 23 24 } // namespace detail 25 } // namespace histogram 26 } // namespace boost 27 28 #endif 29