test_lib_anonymous.cpp 625 B

123456789101112131415161718192021222324252627
  1. //
  2. // Copyright (c) 2012-2019 Antony Polukhin.
  3. //
  4. //
  5. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  6. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. //
  8. #define TEST_LIB_SOURCE
  9. #include "test_lib_anonymous.hpp"
  10. namespace {
  11. class user_defined{};
  12. } // anonymous namespace
  13. namespace test_lib {
  14. boost::typeindex::type_index get_anonymous_user_defined_class() {
  15. return boost::typeindex::type_id<user_defined>();
  16. }
  17. boost::typeindex::type_index get_const_anonymous_user_defined_class() {
  18. return boost::typeindex::type_id_with_cvr<const user_defined>();
  19. }
  20. }