Boost logo

Boost Users :

Subject: Re: [Boost-users] How to convert std::string into basic_string
From: Christoph Gysin (christoph.gysin_at_[hidden])
Date: 2009-09-17 04:15:26


> This is ok but i have to convert string into boost string. if i use the
> method as suggested.
>
> string s = "hello";
> char_string y = ts;

You probably want this:

char_string cs(s.c_str(), alloc_inst);

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