We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd47671 commit 935375fCopy full SHA for 935375f
3rdParty/opencv2/core/types.hpp
@@ -1851,8 +1851,10 @@ template<typename _Tp> inline
1851
_Tp Rect_<_Tp>::area() const
1852
{
1853
const _Tp result = width * height;
1854
- CV_DbgAssert(!std::numeric_limits<_Tp>::is_integer
1855
- || width == 0 || result / width == height); // make sure the result fits in the return value
+ if constexpr (std::numeric_limits<_Tp>::is_integer)
+ {
1856
+ CV_DbgAssert(width == 0 || result / width == height); // make sure the result fits in the return value
1857
+ }
1858
return result;
1859
}
1860
0 commit comments