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/argument.h | |
parent | 45d59165cb6b4c80fd26d555eae8ca8f2a7d0d6f (diff) | |
parent | ae07ef4cf606147c77b6ba472956e2793e251ba6 (diff) |
Merge branch 'master' of https://github.com/CopernicaMarketingSoftware/PHP-CPP
Diffstat (limited to 'include/argument.h')
-rw-r--r-- | include/argument.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/argument.h b/include/argument.h index ddb6390..f45a43a 100644 --- a/include/argument.h +++ b/include/argument.h @@ -144,10 +144,31 @@ private: }; /** + * Old Visual C++ environments do not support initializer lists + */ +#if defined(_MSC_VER) && _MSC_VER < 1800 + +/** + * For old visual c++ compilers, arguments should be passed as vectors + */ +using Arguments = std::vector<Argument>; + +/** + * Other compilers, and visual C++ 2013 do support initializer lists + */ +#else + +/** * A list of arguments can be supplied to methods * @type Arguments */ using Arguments = std::initializer_list<Argument>; + +/** + * End of visual C++ check + */ +#endif + /** * End of namespace |