diff options
Diffstat (limited to 'include/array.h')
-rw-r--r-- | include/array.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/array.h b/include/array.h index 882670a..02fe4c4 100644 --- a/include/array.h +++ b/include/array.h @@ -57,12 +57,18 @@ public: */ template <typename T> Array(const std::map<std::string,T> &value) : Value(value) {} - + +// old visual c++ environments have no support for initializer lists +# if !defined(_MSC_VER) || _MSC_VER >= 1800 + /** * Constructor from an initializer list * @param value */ Array(const std::initializer_list<Value> &value) : Value(value) {} + +// end of visual c++ check +# endif /** * Destructor |