Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-06-28 13:46:13

The problem is that Python strings are immutable, so boost::python won't let
you pass a string by non-const reference. If your C++ function changed the
string, how could we reflect that change on the Python side?


----- Original Message -----
From: "Mikolai Fajer" <mfajer_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Friday, June 29, 2001 5:02 AM
Subject: [boost] Boost::Python ... Having problems passing string references
through Boost

When I try to expose a member function which takes in two "std::string&" I
recieve an error C2665: 'from_python'.

I have successfully passed "const std::string&", and am unsure about what I
am doing wrong, if anything.



Boost list run by bdawes at, gregod at, cpdaniel at, john at