cpp_config_decl.hpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. #include "msgpack/cpp_version.hpp"
  14. #if defined(MSGPACK_USE_CPP03)
  15. namespace msgpack {
  16. /// @cond
  17. MSGPACK_API_VERSION_NAMESPACE(v3) {
  18. /// @endcond
  19. using v2::unique_ptr;
  20. using v2::move;
  21. using v2::enable_if;
  22. using v2::integral_constant;
  23. using v2::is_same;
  24. using v2::underlying_type;
  25. using v2::is_array;
  26. using v2::remove_const;
  27. using v2::remove_volatile;
  28. using v2::remove_cv;
  29. using v2::is_pointer;
  30. /// @cond
  31. } // MSGPACK_API_VERSION_NAMESPACE(v3)
  32. /// @endcond
  33. } // namespace msgpack
  34. #else // MSGPACK_USE_CPP03
  35. namespace msgpack {
  36. /// @cond
  37. MSGPACK_API_VERSION_NAMESPACE(v3) {
  38. /// @endcond
  39. // unique_ptr
  40. using v2::unique_ptr;
  41. // using v2::make_unique; // since C++14
  42. using v2::hash;
  43. // utility
  44. using v2::move;
  45. using v2::swap;
  46. using v2::enable_if;
  47. using v2::is_same;
  48. using v2::underlying_type;
  49. using v2::is_array;
  50. using v2::remove_const;
  51. using v2::remove_volatile;
  52. using v2::remove_cv;
  53. using v2::is_pointer;
  54. /// @cond
  55. } // MSGPACK_API_VERSION_NAMESPACE(v3)
  56. /// @endcond
  57. } // namespace msgpack
  58. #endif // MSGPACK_USE_CPP03
  59. #endif // MSGPACK_V3_CPP_CONFIG_DECL_HPP