From cbeb5805ccc835168cc7e175956de2622b91a4c5 Mon Sep 17 00:00:00 2001 From: jwbee Date: Thu, 3 Jul 2025 11:26:35 -0700 Subject: [PATCH] Include type_traits before use of std:: members msgpack-cpp relies on its users to include, directly or indirectly, the 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. --- include/msgpack/v1/cpp_config_decl.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/msgpack/v1/cpp_config_decl.hpp b/include/msgpack/v1/cpp_config_decl.hpp index 383a4451..9baf5267 100644 --- a/include/msgpack/v1/cpp_config_decl.hpp +++ b/include/msgpack/v1/cpp_config_decl.hpp @@ -87,6 +87,7 @@ struct is_pointer; #include #include +#include namespace msgpack { /// @cond