Subject: Re: [C++-sig] Calling a C++ function with arguments by reference
> (lvalues)
> To: "Development of Python/C++ integration"
> Date: Monday, August 2, 2010, 6:24 PM
> Oded Padon wrote:
>
> > The C++ code is:
> >
> > void add(int const a, int co
Hello everybody,
I'm very new to Boost.Python, and I just spent hours trying to do something
trivial, and couldn't get it. The C++ code is:
void add(int const a, int const b, int const& c)
{
c = a + b;
}
BOOST_PYTHON_MODULE(hello_ext)
{
using namespace boost::python;
def("add", add)