> On 06/06/2010 06:51 PM, Embhi Karuche wrote:
>> I have a vector whose contents I would like to copy
>> into a python::str.
>> Currently, I am doing:
>>
>> string temp(myvector.begin(), myvector.end());
>> python::str data(temp);
>
> You'll need to use the regular Python C API to avoid the tempor
On Sun, Jun 06, 2010 at 09:06:57PM -0700, Jim Bosch wrote:
> On 06/06/2010 06:51 PM, Embhi Karuche wrote:
>> I have a vector whose contents I would like to copy
>> into a python::str.
>> Currently, I am doing:
>>
>> string temp(myvector.begin(), myvector.end());
>> python::str data(temp);
>
> You'
On 06/06/2010 06:51 PM, Embhi Karuche wrote:
I have a vector whose contents I would like to copy
into a python::str.
Currently, I am doing:
string temp(myvector.begin(), myvector.end());
python::str data(temp);
How can I skip the intermediate copy?
You'll need to use the regular Python C A
I have a vector whose contents I would like to copy
into a python::str.
Currently, I am doing:
string temp(myvector.begin(), myvector.end());
python::str data(temp);
How can I skip the intermediate copy?
Thanks
___
Cplusplus-sig mailing list
Cplusplus-