On 20050729T151821+0200, Florian Weimer wrote:
> Today,
>
> template <typename T>
> struct Foo
> {
> static const unsigned N = T::N;
> char bar[N];
> };
>
> works and the enum trick lost its importance.
That is not a new trick, I'm fairly sure that was legal when I first
learned of the enum idiom. The problem is, your trick doesn't work
outside templates,
--
Antti-Juhani Kaijanaho, Debian developer
http://kaijanaho.info/antti-juhani/blog/en/debian
Attachment:
signature.asc
Description: Digital signature