document.h: move inclusion of template meta functions
In order to activate the suppression of "-Weffc++" warnings in the template meta function classes (non-virtual destructor), move the inclusion of the meta-function header `internal/meta.h` after the suppression pragma.
This commit is contained in:
parent
43737ef310
commit
86c47a6a8b
@ -5,11 +5,6 @@
|
|||||||
#include "internal/strfunc.h"
|
#include "internal/strfunc.h"
|
||||||
#include <new> // placement new
|
#include <new> // placement new
|
||||||
|
|
||||||
#ifndef RAPIDJSON_NOMEMBERITERATORCLASS
|
|
||||||
#include "internal/meta.h"
|
|
||||||
#include <iterator> // std::iterator, std::random_access_iterator_tag
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning(push)
|
#pragma warning(push)
|
||||||
#pragma warning(disable : 4127) // conditional expression is constant
|
#pragma warning(disable : 4127) // conditional expression is constant
|
||||||
@ -20,6 +15,11 @@
|
|||||||
#pragma GCC diagnostic ignored "-Weffc++"
|
#pragma GCC diagnostic ignored "-Weffc++"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef RAPIDJSON_NOMEMBERITERATORCLASS
|
||||||
|
#include "internal/meta.h"
|
||||||
|
#include <iterator> // std::iterator, std::random_access_iterator_tag
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace rapidjson {
|
namespace rapidjson {
|
||||||
|
|
||||||
// Forward declaration.
|
// Forward declaration.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user