Topic: \0' == 0?
Author: "Phlip" <tegan@deltanet.com>
Date: 1998/05/26 Raw View
Michael Rubenstein wrote in message
<356ba617.414647531@nntp.ix.netcom.com>...
>On Tue, 26 May 1998 11:52:25 +0200, Gabriel Netterdag
><gabbe@teamcad.se> wrote:
>
>>char(0) is not an integral constant expression.
>
>Which requirement for an integral constant expressions is not met?
Not only is it an integral constant expression, but this line detects how
Standard your compiler is:
assert (char(0) == char());
VC++ 5 works; believe it or not, the ability to do this is a cornerstone
without with STL would frequently be useless.
-- Phlip
======= http://users.deltanet.com/~tegan/home.html =======
Watch At Home on the Range! at:
www.athomeontherange.com
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]