[linux-audio-dev] [ot] [rant] gcc, you let me down one time too many

Jussi Laako jussi.laako at pp.inet.fi
Wed Jun 8 20:56:34 UTC 2005


On Wed, 2005-06-08 at 21:41 +0100, Chris Cannam wrote:

> On Wednesday 08 Jun 2005 21:35, Jussi Laako wrote:
> > You can derive a new class from the template and overload the []
> > operator to perform exactly same as in C. After compilation the
> > result is the same no matter if the template or C array is used.
> 
> Are you sure this is still true in the gcc world, after they changed 
> vector from an array to a real class in gcc 3.3 or whenever it was?

Abovementioned template is not based on STL... About the STL; there are
number of different implementations of std::vector<> in different C++
RTLs, so one cannot expect anything specific except the interface from
it. It may, or may not, be slow, but it's not C++'s fault.


-- 
Jussi Laako <jussi.laako at pp.inet.fi>




More information about the Linux-audio-dev mailing list