[C++-sig] Problem with custom lvalue converter

Tore Birkeland tore.birkeland at gmail.com
Thu Jul 20 13:25:28 CEST 2006


Ah, thanks! Suddenly it all makes a hole lot more sense :)

On 7/20/06, Ralf W. Grosse-Kunstleve <rwgk at yahoo.com> wrote:
> --- Tore Birkeland <tore.birkeland at gmail.com> wrote:
> > void TestA(A in)
> > {
> >       cout << "Got A" << endl;
> > }
>
> You are passing A by value, which means you are invoking the copy constructor.
> Try
>
> void TestA(A const& in)
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
>



More information about the Cplusplus-sig mailing list