[C++-sig] [boost::python] Unresolved overloaded function - methods with same name

yardbird yardbird at nerdshack.com
Mon Oct 30 12:49:18 CET 2006

On Friday 27 October 2006 19:49, Roman Yakovenko wrote:
> typedef int const& (Foo::*get_b_const_type) const;
> .def( "get_b", get_b_const_type( &Foo::get_b ) );
> The idea is to use function type to specify to compiler what function
> you want to export.
> I think you also will have to specify call policies:
> return_value_policy< copy_const_reference >

Yes, thank you very much, that worked ok :) Now I have to look a bit into 
those return value policies...

Best regards and thanks again,


More information about the Cplusplus-sig mailing list