diff options
author | Philipp A. Hartmann <pah@qo.cx> | 2014-09-16 12:37:37 +0400 |
---|---|---|
committer | Philipp A. Hartmann <pah@qo.cx> | 2014-09-16 12:37:37 +0400 |
commit | c0bde81b03efd327b2fce56c9d81957714c19619 (patch) | |
tree | 0745c4857f768fdfd574b030c495d0b472d7626a /include | |
parent | e052c727b24461cb8843d6173cbc8727327c20b4 (diff) |
rapidjson.h: explicitly import std::size_t to rapidjson namespace
Diffstat (limited to 'include')
-rw-r--r-- | include/rapidjson/rapidjson.h | 7 |
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
|