C++ PATCH to fix thinko

Richard Henderson rth@cygnus.com
Mon May 15 16:55:00 GMT 2000


On Mon, May 15, 2000 at 07:11:25PM -0400, Kaveh R. Ghazi wrote:
> How about using __builtin_constant_p() to make sure the string really
> is constant and issue a compile time error if its not?

How about using strlen instead of sizeof, which is what
you were after anyway.


r~


More information about the Gcc-patches mailing list