Subject: Re: [Boost-users] How to convert std::string into basic_string
From: Igor R (boost.lists_at_[hidden])
Date: 2009-09-17 03:47:35


> This is ok but i have to convert string into boost string.

You mean Boost.Interprocess string.

std::string s1("test");

char_string s2(s1.begin(), s1.end());
or:
char_string s2(s1.c_str());