2022-01-04 07:16 AM
There's a bug in <numeric> library in 9-2020-q2-update toolchain. It makes the project fail to compile just by adding `#include <numeric>` to it. I also tried making a fresh new empty project with only that library included and it also doesn't compile. New toolchain 10.3.1 doesn't seem to fail on that.
c:\st\stm32cubeide\plugins\...\include\c++\9.3.1\numeric:89:10: error: expected ')' before '__val'
89 | (_Tp __val)
| ~ ^~~~~~
| )
Solved! Go to Solution.
2022-01-04 08:07 AM
I have figured it out. For some unknown reason I was missing `__abs_integral` in front of `(_Tp __val)` on line 89 of the file c++/9.3.1/numeric. It's OK now.
2022-01-04 07:27 AM
I can't reproduce here. Compiles fine, no warning or error messages. Same 9-2020-q2-update toolchain.
2022-01-04 08:07 AM
I have figured it out. For some unknown reason I was missing `__abs_integral` in front of `(_Tp __val)` on line 89 of the file c++/9.3.1/numeric. It's OK now.