mirror of https://github.com/AxioDL/tinyxml2.git
Prohibit copy and assigment where they are not supported
This commit is contained in:
parent
3cebdc4fac
commit
3e0af3793e
|
@ -288,6 +288,9 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
DynArray( const DynArray& ); // not supported
|
||||||
|
void operator=( const DynArray& ); // not supported
|
||||||
|
|
||||||
void EnsureCapacity( int cap ) {
|
void EnsureCapacity( int cap ) {
|
||||||
TIXMLASSERT( cap > 0 );
|
TIXMLASSERT( cap > 0 );
|
||||||
if ( cap > _allocated ) {
|
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
|
enum { COUNT = (4*1024)/SIZE }; // Some compilers do not accept to use COUNT in private part if COUNT is private
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
MemPoolT( const MemPoolT& ); // not supported
|
||||||
|
void operator=( const MemPoolT& ); // not supported
|
||||||
|
|
||||||
union Chunk {
|
union Chunk {
|
||||||
Chunk* next;
|
Chunk* next;
|
||||||
char mem[SIZE];
|
char mem[SIZE];
|
||||||
|
|
Loading…
Reference in New Issue