This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: std::max: if versus ?:
On Sun, 23 Sep 2012, Gabriel Dos Reis wrote:
I think I have a preference for reverting the patch.
I don't mind, but could you explain what makes you prefer:
if (__a < __b)
return __b;
return __a;
to:
return __a < __b ? __b : __a;
?
It would be useful to know, for next time. The only reason I can think of
for reverting is that if I manage to implement ?: for vectors, it will
give a hard error instead of a warning.
--
Marc Glisse