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]>
Sent: Friday, June 29, 2001 5:02 AM
Subject: [boost] Boost::Python ... Having problems passing string references
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 acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk