mirror of
				https://github.com/Tencent/rapidjson.git
				synced 2025-11-04 12:17:41 +01:00 
			
		
		
		
	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:
		@@ -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.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user