[C++] Derive a class from a tamplate

random@bubblescope.net random@bubblescope.net
Mon Aug 1 14:34:00 GMT 2005


stefano luceri wrote:

> Hello to all .... excuse for my bad english
>
> I've the following problem writing a simple program. I would use the
> metods of std::valarray class adding some self writed method for
> elemnts of double type.
>
I would be very careful about overriding valarray unless you know what
you are doing, it uses some very strange implementation techniques.
Couldn't you use vector instead? or a member of type valarray? Or do you
need/want to extra features valarray offers?



More information about the Gcc-help mailing list