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 <[EMAIL PROTECTED]>
Sent: Jun 8, 2005 4:41 PM
To: linux-audio-dev@music.columbia.edu
Cc: Jussi Laako <[EMAIL PROTECTED]>
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

Reply via email to