[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Bruno Haible
Subject: Re: [bug-gnulib] Re: proposal: lib/verify.h
Date: Mon, 11 Jul 2005 13:31:36 +0200
User-agent: KMail/1.5

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]