- changed status to resolved
Build fails on 32-bit architectures: use of overloaded operator '[]' is ambiguous
Issue #256
resolved
/wrkdirs/usr/ports/graphics/art/work/ART-1.15/rtengine/PF_correct_RT.cc:110:79: error: use of overloaded operator '[]' is ambiguous (with operand types 'JaggedArray<float>' and 'int')
const float chroma = chromaChfactor * (SQR(lab->r(i, j) - tmpa[i][j]) + SQR(lab->b(i, j) - tmpb[i][j])); // modulate chroma function hue
~~~~^~
/wrkdirs/usr/ports/graphics/art/work/ART-1.15/rtengine/jaggedarray.h:41:8: note: candidate function
T *operator[](size_t index)
^
/wrkdirs/usr/ports/graphics/art/work/ART-1.15/rtengine/PF_correct_RT.cc:110:79: note: built-in candidate operator[](float **, int)
const float chroma = chromaChfactor * (SQR(lab->r(i, j) - tmpa[i][j]) + SQR(lab->b(i, j) - tmpb[i][j])); // modulate chroma function hue
^
Architectures: armv7, i386
clang-14
FreeBSD 13.1
Comments (1)
-
repo owner - Log in to comment
jaggedarray: added overload for operator
Fixes
#256→ <<cset 254a4dafa293>>