From f0746b1cee536ad6d4794bf5c857113b1f47d692 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 27 Jun 2014 13:16:43 +0000 Subject: [PATCH] base: fix build for C++11 compliant compilers (i.e. NOT VISUAL STUDIO). --- src/lol/base/array.h | 44 ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/src/lol/base/array.h b/src/lol/base/array.h index f7b79aef..cdfd66b7 100644 --- a/src/lol/base/array.h +++ b/src/lol/base/array.h @@ -556,12 +556,14 @@ class Array : public ArrayBase, Array>::ArrayBase; #else public: + typedef ArrayElement Element; + inline Array() - : ArrayBase, + : ArrayBase>::ArrayBase() {} inline Array(std::initializer_list const &list) - : ArrayBase, + : ArrayBase>::ArrayBase(list) {} #endif @@ -609,12 +611,14 @@ class Array Array>::ArrayBase; #else public: + typedef ArrayElement Element; + inline Array() - : ArrayBase, + : ArrayBase>::ArrayBase() {} inline Array(std::initializer_list const &list) - : ArrayBase, + : ArrayBase>::ArrayBase(list) {} #endif @@ -660,12 +664,14 @@ class Array Array>::ArrayBase; #else public: + typedef ArrayElement Element; + inline Array() - : ArrayBase, + : ArrayBase>::ArrayBase() {} inline Array(std::initializer_list const &list) - : ArrayBase, + : ArrayBase>::ArrayBase(list) {} #endif @@ -708,12 +714,14 @@ class Array Array>::ArrayBase; #else public: + typedef ArrayElement Element; + inline Array() - : ArrayBase, + : ArrayBase>::ArrayBase() {} inline Array(std::initializer_list const &list) - : ArrayBase, + : ArrayBase>::ArrayBase(list) {} #endif @@ -754,12 +762,14 @@ class Array Array>::ArrayBase; #else public: + typedef ArrayElement Element; + inline Array() - : ArrayBase, + : ArrayBase>::ArrayBase() {} inline Array(std::initializer_list const &list) - : ArrayBase, + : ArrayBase>::ArrayBase(list) {} #endif @@ -796,12 +806,14 @@ class Array Array>::ArrayBase; #else public: + typedef ArrayElement Element; + inline Array() - : ArrayBase, + : ArrayBase>::ArrayBase() {} inline Array(std::initializer_list const &list) - : ArrayBase, + : ArrayBase>::ArrayBase(list) {} #endif @@ -836,12 +848,14 @@ class Array Array>::ArrayBase; #else public: + typedef ArrayElement Element; + inline Array() - : ArrayBase, + : ArrayBase>::ArrayBase() {} inline Array(std::initializer_list const &list) - : ArrayBase, + : ArrayBase>::ArrayBase(list) {} #endif @@ -874,6 +888,8 @@ class Array Array>::ArrayBase; #else public: + typedef T Element; + inline Array() : ArrayBase>::ArrayBase() {}