[LC++]C++ Template Instantiation
Charles Randle
charlesrandle at yahoo.com
Tue Sep 3 18:46:20 UTC 2002
Hi Mark,
After doing some stuff with the source code,mainly in
desperation :-), I found out that the compiler doesn't
like it when you attempt to use references to pointer
to member objects . The minute I got rid of the
reference operator from "make_M2()" static member and
from the class gx_memberCB it all compiled and
executed successfully !
Old =
template <class CLIENT,class CLIENTMEMBER>
gx_callback gx_callback::make_M2(CLIENT
&c,CLIENTMEMBER &cm) {
return gx_callback(new
gx_memberCB<CLIENT,CLIENTMEMBER>(c,cm));}
New =
template <class CLIENT,class CLIENTMEMBER>
gx_callback gx_callback::make_M2(CLIENT
&c,CLIENTMEMBER cm) {
return gx_callback(new
gx_memberCB<CLIENT,CLIENTMEMBER>(c,cm));}
Best Regards,
Charles Randle
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
More information about the tuxCPProgramming
mailing list