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

Re: RFC, problem with g++4



On Fri, 29 Jul 2005, Florian Weimer wrote:
> This was once desirable because you couldn't declare real constants in
> classes.  Today,
> 
>   template <typename T>
>   struct Foo
>   {
>     static const unsigned N = T::N;
>     char bar[N];
>   };
> 
> works and the enum trick lost its importance.

 So, if I'm understanding this and the discussion
 that followed correctly, we should change the
 enum to constants. Unless anyone objects, I'll
 file a bug against libc6-dev tomorrow asking for
 it.

 			--j



Reply to: