|
Boost Users : |
Subject: Re: [Boost-users] How to convert std::string into basic_string
From: Christoph Gysin (christoph.gysin_at_[hidden])
Date: 2009-09-16 12:30:27
> I am new to boost-interprocess. I don't know much about this. Any example
> converting the std:: string/c-string into boost basic_string will help me. I
> will be really thankful to you.
basic_string is not boost, it's plain STL.
from <string>:
typedef basic_string<char> string;
To assign two different basic_strings:
std::string s = "foobar";
std::basic_string<wchar_t> ws(s.begin(), s.end());
Chris
-- echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org_at_fr33z3
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net