[Patch] libstdc++/29989

Martin Sebor sebor@roguewave.com
Mon Dec 4 18:43:00 GMT 2006


Paolo Carlini wrote:
> Martin Sebor wrote:
> 
>> FWIW, we simply parenthesize the names:
>>
>>   template <class T, class Compare>
>>   const T& (min)(const T&, const T&, Compare);
>>
>>   template <class T>
>>   const T& (min)(const T &a, const T &b) {
>>       return (min)(a, b, less<T>());
>>   }
> 
> 
> Crazy, thanks Martin, today in a few minutes I'm learning more about 
> these issues than in the rest of my past life ;)

You and me both! I didn't know about the ADL problem
with the parenthesization. Bizarro!

Martin

> 
> Paolo.



More information about the Libstdc++ mailing list