rapidjson.h: explicitly import std::size_t to rapidjson namespace

This commit is contained in:
Philipp A. Hartmann 2014-09-16 10:37:37 +02:00
parent e052c727b2
commit c0bde81b03

View File

@ -45,7 +45,7 @@
different translation units of a single application. different translation units of a single application.
*/ */
#include <cstdlib> // malloc(), realloc(), free() #include <cstdlib> // malloc(), realloc(), free(), size_t
#include <cstring> // memcpy() #include <cstring> // memcpy()
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
@ -248,6 +248,11 @@ typedef unsigned SizeType;
} // namespace rapidjson } // namespace rapidjson
#endif #endif
// always import std::size_t to rapidjson namespace
namespace rapidjson {
using std::size_t;
} // namespace rapidjson
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// RAPIDJSON_ASSERT // RAPIDJSON_ASSERT