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

From: Taybin Rutkin <taybin@email-addr-hidden>
Date: Thu Jun 09 2005 - 00:36:55 EEST

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@email-addr-hidden-day-breakfast.com>
Sent: Jun 8, 2005 4:41 PM
To: linux-audio-dev@email-addr-hidden
Cc: Jussi Laako <jussi.laako@email-addr-hidden>
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
Received on Thu Jun 9 04:15:19 2005

This archive was generated by hypermail 2.1.8 : Thu Jun 09 2005 - 04:15:19 EEST