rapidjson.h: explicitly import std::size_t to rapidjson namespace
This commit is contained in:
parent
e052c727b2
commit
c0bde81b03
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user