On Tue, Oct 03, 2006 at 10:19:41AM +0200, Abdelrazak Younes wrote:
> >+#ifdef __CYGWIN__
> >+#undef max
> >+#undef min
> 
> Hum... why not
> 
> #ifdef max
> #undef max
> #endif
> #ifdef max
> #undef min
> #endif

#undef max
#undef min

is even shorter and has the same effect.

> This looks cleaner to me as some other compilers might do the same.
> Maybe we could use std::max() and std::min() as well to avoid the ambiguity.

You can't disambiguate a macro using namespaces.

Andre'

Reply via email to