mqtt_cpp
any.hpp
Go to the documentation of this file.
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 
7 #if !defined(MQTT_ANY_HPP)
8 #define MQTT_ANY_HPP
9 
10 #include <mqtt/namespace.hpp>
11 
12 #ifdef MQTT_STD_ANY
13 
14 #include <any>
15 
16 namespace MQTT_NS {
17 
18 using std::any;
19 using std::any_cast;
20 
21 } // namespace MQTT_NS
22 
23 #else // MQTT_STD_ANY
24 
25 #include <boost/any.hpp>
26 
27 namespace MQTT_NS {
28 
29 using boost::any;
30 using boost::any_cast;
31 
32 } // namespace MQTT_NS
33 
34 #endif // !defined(MQTT_STD_ANY)
35 
36 #endif // MQTT_ANY_HPP
Definition: any.hpp:27