From 760883c2e8d8cbb66d7f9114425741eb250043e6 Mon Sep 17 00:00:00 2001 From: "Philipp A. Hartmann" Date: Mon, 8 Dec 2014 15:41:58 +0100 Subject: [PATCH 1/2] stringbuffer.h: add missing include for std::move (fixes #208) --- include/rapidjson/stringbuffer.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/rapidjson/stringbuffer.h b/include/rapidjson/stringbuffer.h index 6ffc1e0..151c3b6 100644 --- a/include/rapidjson/stringbuffer.h +++ b/include/rapidjson/stringbuffer.h @@ -21,6 +21,10 @@ #ifndef RAPIDJSON_STRINGBUFFER_H_ #define RAPIDJSON_STRINGBUFFER_H_ +#if RAPIDJSON_HAS_CXX11_RVALUE_REFS +#include // std::move +#endif + #include "rapidjson.h" #include "internal/stack.h" From 8794bbd8bbad30c693cfa844ce58215896c499a3 Mon Sep 17 00:00:00 2001 From: "Philipp A. Hartmann" Date: Mon, 8 Dec 2014 15:59:54 +0100 Subject: [PATCH 2/2] fix include ordering --- include/rapidjson/stringbuffer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/rapidjson/stringbuffer.h b/include/rapidjson/stringbuffer.h index 151c3b6..db00af3 100644 --- a/include/rapidjson/stringbuffer.h +++ b/include/rapidjson/stringbuffer.h @@ -21,11 +21,12 @@ #ifndef RAPIDJSON_STRINGBUFFER_H_ #define RAPIDJSON_STRINGBUFFER_H_ +#include "rapidjson.h" + #if RAPIDJSON_HAS_CXX11_RVALUE_REFS #include // std::move #endif -#include "rapidjson.h" #include "internal/stack.h" RAPIDJSON_NAMESPACE_BEGIN