Boost logo

Boost :

Subject: Re: [boost] [test]
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2009-05-17 03:38:56


Jochen Heckl wrote:
> Hi,
> I think I stumbled over a problem in the boost unit test library.
>
> this code (boost\test\utils\basic_cstring\basic_cstring.hpp, around line 170)
> will result in a corrupted basic_cstring, if the source string s goes
> out of scope, which is the case here
> because of the temporal std::string return from retrieve_parameter
> (boost\test\impl\unit_test_parameters.ipp, around line 353 )

Yep. Good catch. Your fix is fine I think. I checked it in.

Gennadiy


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk