Commit 86c47a6a authored by Philipp A. Hartmann's avatar Philipp A. Hartmann

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.
parent 43737ef3
......@@ -5,11 +5,6 @@
#include "internal/strfunc.h"
#include <new> // placement new
#ifndef RAPIDJSON_NOMEMBERITERATORCLASS
#include "internal/meta.h"
#include <iterator> // std::iterator, std::random_access_iterator_tag
#endif
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4127) // conditional expression is constant
......@@ -20,6 +15,11 @@
#pragma GCC diagnostic ignored "-Weffc++"
#endif
#ifndef RAPIDJSON_NOMEMBERITERATORCLASS
#include "internal/meta.h"
#include <iterator> // std::iterator, std::random_access_iterator_tag
#endif
namespace rapidjson {
// Forward declaration.
......
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