Login Page - Create Account

Support Board


Date/Time: Wed, 12 Feb 2025 21:58:40 +0000



Post From: min() max() question

[2020-08-26 15:11:54]
mkata - Posts: 103
I updated to the latest version and when re-compiling my studies I get this error for min() and max() functions.
It will compile if I replace max() with std::max() but this seems off.
Can you comment on this?
Thanks.



error: 'max' was not declared in this scope; did you mean 'std::max'?
| ^~~
| std::max
In file included from /usr/lib/gcc/x86_64-w64-mingw32/9.3-win32/include/c++/algorithm:62,
from scstructures.h:24,
from sierrachart.h:22,
/usr/lib/gcc/x86_64-w64-mingw32/9.3-win32/include/c++/bits/stl_algo.h:3462:5: note: 'std::max' declared here
3462 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~