Re: C++ static integer class constants...

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

 



* Alex J. Dam:

> This is usually only needed when, e. g., you take the address of a
> constant:
>
> const int *x = &foo::X;

Not quite.  This is needed if you use the constant in a context which
does not *require* an integral constant.  However, GCC does not
provide a diagnostics for this case (and the C++ spec does not require
one).

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux