You have to do something like that
using namespace boost::python;
BOOST_PYTHON_MODULE(my_module)
{
struct wrapper{
static tuple bar(Foo & f){
double a, b;
f.bar(a,b);
return make_tuple(a,b);
}
};
class_("Foo", init<>())
.def("bar"
- Original Message -
> From: Jason Addison
> To: cplusplus-sig@python.org
> Cc:
> Sent: Saturday, May 23, 2015 6:05 PM
> Subject: [C++-sig] Returning values to Python in C++ reference arguments
>
> How can results be returned in function arguments?
>
I don't think that you can retur