
"Eric Niebler" <eric@boost-consulting.com> writes:
Guillaume Melquiond wrote:
How did you deal with occurrences of min and max that rely on ADL (sorry if that is not the correct term)? Or did you handle only explicitly qualified calls std::min and std::max? I'm asking because the Interval library relies on this kind of construct in order to deal with built-in types (like int, float, etc) and user-defined types (their min and max are found by Koenig lookup).
Hmmm ... I was aware of the theoretical possibility of this problem, but I didn't know there was actual boost code relying on ADL with std::min/std::max.
I don't see the problem. Wasn't the intention only to replace qualified std::min and std::max with (std::min) and (std::max)? -- Dave Abrahams Boost Consulting www.boost-consulting.com