any.hpp 588 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright Takatoshi Kondo 2016
  2. //
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // (See accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. #if !defined(MQTT_ANY_HPP)
  7. #define MQTT_ANY_HPP
  8. #include <mqtt/namespace.hpp>
  9. #ifdef MQTT_STD_ANY
  10. #include <any>
  11. namespace MQTT_NS {
  12. using std::any;
  13. using std::any_cast;
  14. } // namespace MQTT_NS
  15. #else // MQTT_STD_ANY
  16. #include <boost/any.hpp>
  17. namespace MQTT_NS {
  18. using boost::any;
  19. using boost::any_cast;
  20. } // namespace MQTT_NS
  21. #endif // !defined(MQTT_STD_ANY)
  22. #endif // MQTT_ANY_HPP