This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: Use std::{min,max} instead of MIN/MAX?
- From: Marek Polacek <polacek at redhat dot com>
- To: Trevor Saunders <tbsaunde at tbsaunde dot org>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 11 Jul 2015 11:58:40 +0200
- Subject: Re: RFC: Use std::{min,max} instead of MIN/MAX?
- Authentication-results: sourceware.org; auth=none
- References: <20150710131910 dot GB2876 at redhat dot com> <20150710193556 dot GC13667 at tsaunders-iceball dot corp dot tor1 dot mozilla dot com>
On Fri, Jul 10, 2015 at 03:35:57PM -0400, Trevor Saunders wrote:
> You can also explicitly pick the specialization you want with e.g.
> std::max<long long> (x, y); its kind of long, but I can see an argument
> for the explicitness so I'm not sure how ugly I think it is.
Thanks for pointing this out. Yea, that'd be an option, though I don't
think people would be too happy about that.
Marek