Opencv build error C2666

See Compiling Opencv Error - #3 by cudawarped

and

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