
How does this assign overload work? Sound like wht I need. Sean. -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Daniel Krügler Sent: 07 July 2008 09:55 To: boost-users@lists.boost.org Subject: Re: [Boost-users] Converting an std::vector to std::wstring Sean Farrow wrote:
Hi: What is the best way (in terms of efficiency) to convert an std::vector of wchar_t to std::wstring. I can think of a oupple of aproaches: 1. using std::copy. 2. using boost::lexical_cast. 3 using boost::foreach 4. Usin he boost::serialization library. The std::wstring doesn't ned to be output to a file. Any advice apreciated. Sean.
What about the sequence assignment capabilities of basic_string itself, like this:
std::wstring from_vector(const std::vector