diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-02-05 21:00:22 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-02-05 21:00:22 +0100 |
commit | 1432d5f4bb053fcaa12a9b7e50c4d3787eb5194b (patch) | |
tree | d1ed68102d5266303deeebeb506e1d607acabf70 /include/array.h | |
parent | 45d59165cb6b4c80fd26d555eae8ca8f2a7d0d6f (diff) | |
parent | ae07ef4cf606147c77b6ba472956e2793e251ba6 (diff) |
Merge branch 'master' of https://github.com/CopernicaMarketingSoftware/PHP-CPP
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 |