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

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Thu Jul 20 12:53:14 CEST 2006

--- 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.

void TestA(A const& in)

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

More information about the Cplusplus-sig mailing list