cpp_config_decl.hpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. //
  2. // MessagePack for C++ C++03/C++11 Adaptation
  3. //
  4. // Copyright (C) 2018 KONDO Takatoshi
  5. //
  6. // Distributed under the Boost Software License, Version 1.0.
  7. // (See accompanying file LICENSE_1_0.txt or copy at
  8. // http://www.boost.org/LICENSE_1_0.txt)
  9. //
  10. #ifndef MSGPACK_V3_CPP_CONFIG_DECL_HPP
  11. #define MSGPACK_V3_CPP_CONFIG_DECL_HPP
  12. #include "msgpack/v2/cpp_config_decl.hpp"
  13. #if defined(MSGPACK_USE_CPP03)
  14. namespace msgpack {
  15. /// @cond
  16. MSGPACK_API_VERSION_NAMESPACE(v3) {
  17. /// @endcond
  18. using v2::unique_ptr;
  19. using v2::move;
  20. using v2::enable_if;
  21. using v2::integral_constant;
  22. using v2::is_same;
  23. using v2::underlying_type;
  24. using v2::is_array;
  25. using v2::remove_const;
  26. using v2::remove_volatile;
  27. using v2::remove_cv;
  28. using v2::is_pointer;
  29. /// @cond
  30. } // MSGPACK_API_VERSION_NAMESPACE(v3)
  31. /// @endcond
  32. } // namespace msgpack
  33. #else // MSGPACK_USE_CPP03
  34. namespace msgpack {
  35. /// @cond
  36. MSGPACK_API_VERSION_NAMESPACE(v3) {
  37. /// @endcond
  38. // unique_ptr
  39. using v2::unique_ptr;
  40. // using v2::make_unique; // since C++14
  41. using v2::hash;
  42. // utility
  43. using v2::move;
  44. using v2::swap;
  45. using v2::enable_if;
  46. using v2::is_same;
  47. using v2::underlying_type;
  48. using v2::is_array;
  49. using v2::remove_const;
  50. using v2::remove_volatile;
  51. using v2::remove_cv;
  52. using v2::is_pointer;
  53. /// @cond
  54. } // MSGPACK_API_VERSION_NAMESPACE(v3)
  55. /// @endcond
  56. } // namespace msgpack
  57. #endif // MSGPACK_USE_CPP03
  58. #endif // MSGPACK_V3_CPP_CONFIG_DECL_HPP