On August 5, 2016 8:15:54 PM GMT+02:00, Oleg Endo <oleg.e...@t-online.de> wrote: >On Fri, 2016-08-05 at 19:55 +0200, Richard Biener wrote: > >> >> Please don't use std::string. For string building you can use >> obstacks. >> > >Just out of curiosity ... why? I remember there was some discussion >about it, what was the conclusion? Is that now a general rule or does >it depend on the context where strings are used?
Because you make a messy mix of string handling variants. Std::string is not powerful enough to capture all uses, it is vastly more expensive to embed into structs and it pulls in too much headers. (Oh, and I hate I/o streams even more) Richard. >Cheers, >Oleg