I have a modified version of Chris' Uncanny Eyes which compiles without errors on IDE 2 and 1.58.1 and gives this error on 0.59.5:
the program is huge. I suspect the error would occur with other attempts to use Chris' codebase. ( I've mostly moved things around and added some audio stuff.) I saw this in 59.4 and reverted to 1.58.1 without saying anything. It showed up subsequent lines when I deleted the offending line with 0.59.4. Is there something different about the way 'array' is handled in the new version?
Code:
In file included from /Users/raine001/Documents - MacBook Pro/Arduino/TeensyEyes/config.h:30,
from /Users/raine001/Documents - MacBook Pro/Arduino/TeensyEyes/TeensyEyes.ino:62:
/Users/raine001/Documents - MacBook Pro/Arduino/TeensyEyes/src/EyeController.h: In instantiation of 'std::pair<float, float> EyeController<numEyes, Disp>::computeEyelids(Eye<Disp>&) const [with unsigned int numEyes = 2; Disp = GC9A01A_Display]':
/Users/raine001/Documents - MacBook Pro/Arduino/TeensyEyes/src/EyeController.h:685:43: required from 'bool EyeController<numEyes, Disp>::renderFrame() [with unsigned int numEyes = 2; Disp = GC9A01A_Display]'
/Users/raine001/Documents - MacBook Pro/Arduino/TeensyEyes/TeensyEyes.ino:205:20: required from here
/Users/raine001/Documents - MacBook Pro/Arduino/TeensyEyes/src/EyeController.h:255:27: note: parameter passing for argument of type 'std::pair<float, float>' when C++17 is enabled changed to match C++14 in GCC 10.1
255 | std::pair<float, float> computeEyelids(Eye<Disp> &eye) const {
| ^~~~~~~~~~~~~~
the program is huge. I suspect the error would occur with other attempts to use Chris' codebase. ( I've mostly moved things around and added some audio stuff.) I saw this in 59.4 and reverted to 1.58.1 without saying anything. It showed up subsequent lines when I deleted the offending line with 0.59.4. Is there something different about the way 'array' is handled in the new version?