瀏覽代碼

base: gcc compilation fix.

undefined
Sam Hocevar 10 年之前
父節點
當前提交
fb430a9f22
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. +5
    -2
      src/lol/base/array.h

+ 5
- 2
src/lol/base/array.h 查看文件

@@ -496,12 +496,15 @@ protected:
template<typename... T>
class array : public array_base<tuple<T...>, array<T...>>
{
public:
/* GCC needs this but Clang doesn’t */
typedef tuple<T...> element_t;

#if LOL_FEATURE_CXX11_INHERIT_CONSTRUCTORS
private:
using array_base<tuple<T...>, array<T...>>::array_base;
#else
public:
typedef tuple<T...> element_t;

inline array()
: array_base<element_t, array<T...>>::array_base()
{}


Loading…
取消
儲存