Boost logo

Boost :

Subject: Re: [boost] Variadic append for std::string
From: Christof Donat (cd_at_[hidden])
Date: 2017-01-03 08:19:13


Hi,

Am 01.01.2017 00:21, schrieb Andrey Semashev:
> throw std::runtime_error(format(std::string()) << "Error " << 47);

How would that differ from

   throw std::runtime_error((std::ostringstream{} << "Error " <<
47).str());

Christof


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