Opencv build error C2666

CUDA 12.2
cudnn 8.9.2
CMake version 3.26.4
Visual Studio Enterprise 2022 versioin 17.6.4

D:\\opencv-4.8.0\modules\dnn\src\layers\../cuda4dnn/primitives/normalize_bbox.hpp(114,17): error C2666: “operator !=”: overloaded functions with similar conversion (Compile source files D:\\opencv-4.8.0\modules\dnn\src\layers\normalize_bbox_layer.cpp)
D:\\opencv-4.8.0\modules\dnn\src\layers\../cuda4dnn/primitives/region.hpp(124,17): error C2666: "operator >": overloaded functions with similar conversion (Compile source files D:\\opencv-4.8.0\modules\dnn\src\layers\region_layer.cpp)

build opencv_world.vcxproj - failed

See Compiling Opencv Error - #3 by cudawarped

and

for the fix. Unfortunately the person who initiated the PR fixing this issue has disapeared.

Yeah, same problem here, this is now blocking me from working on some important stuff. Has anyone filed a missing person’s report yet?

Fixed here