diff --git a/src/lol/base/array.h b/src/lol/base/array.h index d1f3155f..5cf49a5f 100644 --- a/src/lol/base/array.h +++ b/src/lol/base/array.h @@ -24,6 +24,9 @@ #include /* for placement new */ #include /* for std::swap */ #include +#if 0 // disabled: Visual Studio 2012 doesn't have this +#include +#endif namespace lol { @@ -46,6 +49,18 @@ public: { } +#if 0 + inline ArrayBase(std::initializer_list list) + : m_data(0), + m_count(0), + m_reserved(0) + { + Reserve(list.size); + for (auto elem : list) + Push(elem); + } +#endif + inline ~ArrayBase() { for (int i = 0; i < m_count; i++)