Boost logo

Boost Users :

Subject: [Boost-users] string_ref and modifying underlying data
From: james (dirtydroog_at_[hidden])
Date: 2015-08-03 11:27:31


I'm curious about the decision taken to not allow string_ref to modify the
data it represents.
I'm modifying our JSON parser to use it, and sometimes I need to normalise
a field to
uppercase or lowercase. Obviously I cannot now do this without making a
copy of the normalised field somewhere with either std::string or

I notice Jeffrey Yaskin's proposal for a standard implementation ( has
also taken this design decision, which is disappointing.


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