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

Re: RFC, problem with g++4

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 


Attachment: signature.asc
Description: Digital signature

Reply to: