Build fails on 32-bit architectures: use of overloaded operator '[]' is ambiguous

Issue #256 resolved
Yuri Vic created an issue
/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)

  1. Log in to comment