c++c++11boostboost-format

C++11 Equivalent to Boost.Format


Anything like Boost.Format in the C++11 standard? I've been able to avoid using Boost with a better C++11 option for every other need I've had.

For that matter, Boost.Format doesn't hold a candle to the syntax of Python format(). Something like that would be even better.


Solution

  • There is a proposal for something similar to boost-format. However, it's neither part of C++11 nor C++14, nor has anything related to string formatting be added.

    Here you can find the latest proposal. In contrast to boost-format, it's based on variadic templates.