Re: [bug-gnulib] Re: proposal: lib/verify.h

2005-07-11 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > However, Jim's first version with the NULL pointer works in C++ too: > > #define verify_expr(R) (void) ((verify_type__ (R) *) 0) > > I'd therefore suggest to use this one. Thanks for catching that; I followed your suggestion in coreutils. 2005-07-11 Pa

Re: [bug-gnulib] Re: proposal: lib/verify.h

2005-07-11 Thread Bruno Haible
Paul Eggert wrote: > ! # define verify_expr(R) ((void) sizeof (verify_type__ (R))) This doesn't work in C++: gcc gives an error "error: ISO C++ forbids defining types within sizeof" However, Jim's first version with the NULL pointer works in C++ too: #define verify_expr(R) (void) ((verify_type__