$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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