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

Taybin Rutkin taybin at earthlink.net
Wed Jun 8 21:36:55 UTC 2005


I believe the C++ standard specifies that vector<> uses contigous memory and that &v[0] returns a valid pointer to an array.

Taybin

-----Original Message-----
From: Chris Cannam <cannam at all-day-breakfast.com>
Sent: Jun 8, 2005 4:41 PM
To: linux-audio-dev at music.columbia.edu
Cc: Jussi Laako <jussi.laako at pp.inet.fi>
Subject: Re: [linux-audio-dev] [ot] [rant] gcc,	you let me down one time too many

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?


Chris




More information about the Linux-audio-dev mailing list