Commit c0bde81b authored by Philipp A. Hartmann's avatar Philipp A. Hartmann

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

parent e052c727
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment