Skip to content

Commit cbeb580

Browse files
authored
Include type_traits before use of std:: members
msgpack-cpp relies on its users to include, directly or indirectly, the <type_traits> header before including msgpack headers. If they don't, it can't compile, because std::remove_volatile will not be declared. This fixes the issue by including it from msgpack, which should be fine now that msgpack-cpp requires C++11.
1 parent 1cde61e commit cbeb580

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/msgpack/v1/cpp_config_decl.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ struct is_pointer;
8787

8888
#include <memory>
8989
#include <tuple>
90+
#include <type_traits>
9091

9192
namespace msgpack {
9293
/// @cond

0 commit comments

Comments
 (0)