[C++-sig] Return policy for operator()
Grant Goodyear
grant at grantgoodyear.org
Tue Aug 23 00:32:41 CEST 2005
Eric Jardim wrote: [Mon Aug 22 2005, 05:17:49PM CDT]
> 2005/8/22, Grant Goodyear <grant at grantgoodyear.org>:
>
> I think "return_value_policy<copy_non_const_referece>()" will work.
>
> It is just a "float".
Actually, I'm trying to ask an even dumber question. Normally I would
set a return policy with a line such as:
set_policy(MyMethodName,return_value_policy(copy_non_const_reference))
but when overloading operator() I'm not sure what 'MyMethodName' should
be....
Thanks,
Grant
--
Grant Goodyear
web: http://www.grantgoodyear.org
e-mail: grant at grantgoodyear.org
More information about the Cplusplus-sig
mailing list