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

stefan kersten steve at k-hornz.de
Thu Jun 9 20:03:49 UTC 2005


On Thu, Jun 09, 2005 at 08:23:57PM +0100, Chris Cannam wrote:
> On Thursday 09 Jun 2005 20:07, stefan kersten wrote:
> > On Thu, Jun 09, 2005 at 09:39:21PM +0300, Jussi Laako wrote:
> > > On Thu, 2005-06-09 at 18:14 +0200, stefan kersten wrote:
> > > > int access(std::vector<int> v, int i)
> > >
> > > At least you are making copy here, should be
> > > int access(std::vector<int> &v, int i)
> >
> > actually not, structs are passed by reference.
[...]
> a: a.cpp:5: A::A(const A&): Assertion `0' failed.
> Aborted

oh, you're right, i missed that. the struct is copied by the
caller, of course. doesn't change the code exmitted for
std::vector _access_, though.

<sk>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20050609/73962f4f/attachment.pgp>


More information about the Linux-audio-dev mailing list