Просмотр исходного кода

Merge branch 'master' of https://github.com/leethomason/tinyxml2

Lee Thomason 13 лет назад
Родитель
Сommit
67abded7f7
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      tinyxml2.h

+ 2 - 1
tinyxml2.h

@@ -349,8 +349,9 @@ public:
                 name, _maxAllocs, _maxAllocs*SIZE/1024, _currentAllocs, SIZE, _nAllocs, _blockPtrs.Size() );
     }
 
+    enum { COUNT = 1024/SIZE }; // Some compilers do not accept to use COUNT in private part if COUNT is private
+
 private:
-    enum { COUNT = 1024/SIZE };
     union Chunk {
         Chunk*  next;
         char    mem[SIZE];