Is libstdc++ redefining min() and max() properly?
Phil Edwards
pedwards@disaster.jaj.com
Sun Dec 2 20:36:00 GMT 2001
On Sun, Dec 02, 2001 at 08:48:38PM -0500, Craig Rodrigues wrote:
>
> According to PR 3658, libstdc++ is not re-defining
> min() and max() properly.
My opinion:
user programs have no business #define'ing min and max. If they include
<algorithm> then they can use a safe, fast, extensible main and max for
arbitrary types.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams
More information about the Libstdc++
mailing list