Merge pull request #10589 from patrikhuber:patch-1

* Make <array> #ifdef true for MSVC

I think MSVC had `std::array` for quite a while (possibly going back as far as VS 2012, but it's definitely there in 2015 and 2017. So I think `_MSC_VER` `1900` is a safe bet. Probably `1800` and maybe even `1700` could work as well but I can't test that locally.

* fix test
This commit is contained in:
Patrik Huber
2018-02-17 11:53:30 +00:00
committed by Alexander Alekhin
parent 0e4eed0ba1
commit 7be0c78533
2 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -442,7 +442,7 @@ Cv64suf;
\****************************************************************************************/
#ifndef CV_CXX_STD_ARRAY
# if __cplusplus >= 201103L
# if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1900/*MSVS 2015*/)
# define CV_CXX_STD_ARRAY 1
# include <array>
# endif