瀏覽代碼

Attempt to fix compilation with gcc.

Alex Szpakowski 8 年之前
父節點
當前提交
487c17d1d8
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/libraries/glslang/glslang/Include/PoolAlloc.h

+ 2 - 1
src/libraries/glslang/glslang/Include/PoolAlloc.h

@@ -281,6 +281,8 @@ public:
     pool_allocator(TPoolAllocator& a) : allocator(a) { }
     pool_allocator(const pool_allocator<T>& p) : allocator(p.allocator) { }
 
+    pool_allocator& operator=(const pool_allocator&) { return *this; }
+
     template<class Other>
         pool_allocator(const pool_allocator<Other>& p) : allocator(p.getAllocator()) { }
 
@@ -308,7 +310,6 @@ public:
     TPoolAllocator& getAllocator() const { return allocator; }
 
 protected:
-    pool_allocator& operator=(const pool_allocator&) { return *this; }
     TPoolAllocator& allocator;
 };