Boost logo

Boost :

Subject: Re: [boost] Variadic append for std::string
From: Bjorn Reese (breese_at_[hidden])
Date: 2017-01-19 12:07:30


On 01/19/2017 02:53 PM, Richard Hodges wrote:

> join(wrapped_sequence(range, "[", "]", ",", " ")) -- results in "[ a,
> b, c ]" or "[ ]" if the sequence is empty.
>
> The last one would allow automatic generation of JSON...

Except that "[ a, b, c ]" is not valid JSON.


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