[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.
Try
void TestA(A const& in)
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Cplusplus-sig
mailing list