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__ (R) *) 0)

I'd therefore suggest to use this one.

Bruno



_______________________________________________
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to