3 ms·
Uhm... Using "-1" to assign the maximum value is in fact as standard and cross-platform as using std::numeric_limits, which was basically my entire point. The
by lhecker 11y ago
Uhm... Using "-1" to assign the maximum value is in fact as standard and cross-platform as using std::numeric_limits, which was basically my entire point.
The difference between those is only "textual solution" VS "mathematical solution" and thus a matter of personal preference.