Closed GoogleCodeExporter closed 9 years ago
The source code line is
http://code.google.com/p/googletest/source/browse/trunk/src/gtest.cc?r=478#1739.
Original comment by vladlosev
on 25 Aug 2010 at 9:57
What's wrong with that line?
Original comment by w...@google.com
on 25 Aug 2010 at 10:09
Oh, the code does indeed seem to be corrects. The temporary string returned by
stringstream::str() persists for the lifetime of the reference it's bound to,
so the access to it is valid.
Original comment by vladlosev
on 25 Aug 2010 at 10:49
Original comment by vladlosev
on 25 Aug 2010 at 10:49
Original issue reported on code.google.com by
vladlosev
on 25 Aug 2010 at 9:54