priority.hpp 593 B

12345678910111213141516171819202122232425262728
  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. #ifndef BOOST_HISTOGRAM_DETAIL_PRIORITY_HPP
  7. #define BOOST_HISTOGRAM_DETAIL_PRIORITY_HPP
  8. #include <cstdint>
  9. namespace boost {
  10. namespace histogram {
  11. namespace detail {
  12. // priority is used to priorise ambiguous overloads
  13. template <std::size_t N>
  14. struct priority : priority<(N - 1)> {};
  15. template <>
  16. struct priority<0> {};
  17. } // namespace detail
  18. } // namespace histogram
  19. } // namespace boost
  20. #endif