Christian Biesinger wrote: > Mike Nordell wrote: > > #ifdef truncate > > #undef truncate > > #endif > > I believe that this: > #undef truncate > is functionally completely identical to your lines, even if truncate is > not defined.
Functionally equivalent, though the latter version could introduce a compiler warning. I don't know about e.g. GCC, but at least MSVC would indeed complain about it. Besides, it's a logical error to try to undef something that isn't defined in the first place. /Mike
