Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost.stringalgo] issue
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2009-05-11 13:46:39

Sean Farrow skrev:
> Hi list:
> I am in the process of using boost::algorithm::replace_all with the
> following tuple:
> Boost::tuple<DWORD, boost::filesystem::wpath>
> If I use the code below:
> std::wstring temp1, temp2, temp3;
> temp1 =ProcInfo.get<1>().string();
> temp2 =ProcInfo.get<1>().filename();
> temp3 =L"dolapi.dll";
> boost::algorithm::replace_all(temp1, temp2, temp3);
> The code compiles fine, How ever if I use:
> boost::algorithm::replace_all(ProcInfo.get<1>().string(),
> ProcInfo.get<1>().filename(), L"dolapi.dll");

is .string() returning a mutable reference?


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at