From 3e0af3793e2cfc164ea3bf50d787162d16419d3a Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Fri, 9 Jan 2015 15:30:00 +0300 Subject: [PATCH] Prohibit copy and assigment where they are not supported --- tinyxml2.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tinyxml2.h b/tinyxml2.h index b18caf1..1e560b4 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -288,6 +288,9 @@ public: } private: + DynArray( const DynArray& ); // not supported + void operator=( const DynArray& ); // not supported + void EnsureCapacity( int cap ) { TIXMLASSERT( cap > 0 ); if ( cap > _allocated ) { @@ -421,6 +424,9 @@ public: enum { COUNT = (4*1024)/SIZE }; // Some compilers do not accept to use COUNT in private part if COUNT is private private: + MemPoolT( const MemPoolT& ); // not supported + void operator=( const MemPoolT& ); // not supported + union Chunk { Chunk* next; char mem[SIZE];