Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp A. Hartmann <pah@qo.cx>2014-09-16 12:37:37 +0400
committerPhilipp A. Hartmann <pah@qo.cx>2014-09-16 12:37:37 +0400
commitc0bde81b03efd327b2fce56c9d81957714c19619 (patch)
tree0745c4857f768fdfd574b030c495d0b472d7626a /include/rapidjson
parente052c727b24461cb8843d6173cbc8727327c20b4 (diff)
rapidjson.h: explicitly import std::size_t to rapidjson namespace
Diffstat (limited to 'include/rapidjson')
-rw-r--r--include/rapidjson/rapidjson.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/rapidjson/rapidjson.h b/include/rapidjson/rapidjson.h
index 9aa9204a..73796e34 100644
--- a/include/rapidjson/rapidjson.h
+++ b/include/rapidjson/rapidjson.h
@@ -45,7 +45,7 @@
different translation units of a single application.
*/
-#include <cstdlib> // malloc(), realloc(), free()
+#include <cstdlib> // malloc(), realloc(), free(), size_t
#include <cstring> // memcpy()
///////////////////////////////////////////////////////////////////////////////
@@ -248,6 +248,11 @@ typedef unsigned SizeType;
} // namespace rapidjson
#endif
+// always import std::size_t to rapidjson namespace
+namespace rapidjson {
+using std::size_t;
+} // namespace rapidjson
+
///////////////////////////////////////////////////////////////////////////////
// RAPIDJSON_ASSERT