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:
Philipp A. Hartmann 2014-07-03 14:56:43 +02:00
parent 43737ef310
commit 86c47a6a8b

View File

@ -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.