ericniebler / range-v3

Range library for C++14/17/20, basis for C++20's std::ranges
Other
4.06k stars 437 forks source link

range-v3/range/v3/view/interface.hpp:160:23: error: expected '>' before numeric constant template(bool True = true)( #1731

Open MrWangg1992 opened 1 year ago

MrWangg1992 commented 1 year ago

Hi i just cannot compile my code, and the compiler keeps throwing errors regarding range-v3 package, and attached are my error logs. And i found out if i remove #include <opencv2/opencv.hpp> in one of my dependencies if can be compiled, however, if i include it, it will throw this error. Since it is a company-wide huge engineering code that has a lot of dependencies, i just can't paste the code here. any thoughts?

in cmake file set c++ 17 gcc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

part_of_error.log

beojan commented 1 year ago

I think you might have True defined as a macro, likely somewhere in OpenCV.

MrWangg1992 commented 1 year ago

fixed it by changing the '#include xxx' order