3 ms·
Edit: apologies, I'm blind; never mind. I thought I double-checked but the use of > instead of < tripped me up.
by mehrdadn 9y ago
Edit: apologies, I'm blind; never mind. I thought I double-checked but the use of > instead of < tripped me up.
- darkmx0z 9y agoStepanov disagrees. You should return the second parameter if a, b are equivalent (and you should use < anyway): template<typename T> inline constexpr const T& max(const T& a, const T& b) { return (b < a ? a : b); }