First, is that a typo on line 890 of SimdView.hpp, e. g. case :CV_8UC4 return Bgra32; ? (I first saw this in a zip I downloaded, where it was on line 888, but now it's still there in the master branch on github).
Second, if I "fix" that (by changing to case CV_8UC4: return Bgra32;), Visual Studio 2015 complains about the place five lines below, e. g.
default: assert(0); return 0;
error C2440: 'return': cannot convert from 'int' to 'Simd::View<Simd::Allocator>::Format'
What could be the reason?
UPD: changing return 0; to return None; makes it work. None is still 0 defined in a enum, maybe it depends on a compiler whether it can or cannot cast automatically.
Last edit: Anonymous 2016-05-19
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "English Common Forum" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
First, is that a typo on line 890 of SimdView.hpp, e. g. case :CV_8UC4 return Bgra32; ? (I first saw this in a zip I downloaded, where it was on line 888, but now it's still there in the master branch on github).
Second, if I "fix" that (by changing to case CV_8UC4: return Bgra32;), Visual Studio 2015 complains about the place five lines below, e. g.
default: assert(0); return 0;
error C2440: 'return': cannot convert from 'int' to 'Simd::View<Simd::Allocator>::Format'
What could be the reason?
UPD: changing
return 0;
toreturn None;
makes it work. None is still 0 defined in a enum, maybe it depends on a compiler whether it can or cannot cast automatically.Last edit: Anonymous 2016-05-19
Thank you for bug report. I have fixed this bug. The fix will be in the next release or you can get current version from GitHub.
View and moderate all "English Common Forum" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Me again. It seems that semicolons are missing at the end of the lines 641 and 643, e. g.
I have no idea how Visual Studio didn't care, but GCC gives:
Its bad idea to commit code without checking :( .
I will try to fix these bugs.
Yes! I have fixed this bug.
P.S. This behavior of MSVC compiler is so strange.