detail_replace_type_test.cpp 717 B

12345678910111213141516171819202122
  1. // Copyright 2015-2017 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. #include <boost/core/lightweight_test.hpp>
  7. #include <boost/core/lightweight_test_trait.hpp>
  8. #include <boost/histogram/detail/replace_type.hpp>
  9. #include "std_ostream.hpp"
  10. using namespace boost::histogram::detail;
  11. int main() {
  12. BOOST_TEST_TRAIT_SAME(replace_type<long, char, int>, long);
  13. BOOST_TEST_TRAIT_SAME(replace_type<char, char, int>, int);
  14. BOOST_TEST_TRAIT_SAME(replace_default<boost::use_default, char>, char);
  15. BOOST_TEST_TRAIT_SAME(replace_default<int, char>, int);
  16. return boost::report_errors();
  17. }