This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
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!
Paolo.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |