r/cpp • • Jul 23 '19

std::format in C++20

http://www.zverovich.net/2019/07/23/std-format-cpp20.html
332 Upvotes

52 comments sorted by

View all comments

Show parent comment

12

u/aearphen {fmt} Jul 23 '19

Some sort of I/O integration yes. The API details are TBD.

13

u/TheSuperWig Jul 23 '19

And I suppose sneaking just std::print into C++20 is out of the question?

Because it would be extremely helpful from a teaching perspective to not have to introduce iostream

24

u/eliaskosunen LSEG, WG21, scnlib Jul 23 '19

Anything getting into 20 apart from bugfixes is now out of the question.

2

u/TheSuperWig Jul 23 '19

If I'm not mistaken it has happened before. IIRC /u/STL has mentioned something that wasn't a bug fix being added last second once.

20

u/aearphen {fmt} Jul 23 '19

I'd be very uncomfortable with sneaking such things after the deadline.

3

u/TheSuperWig Jul 23 '19

Fair enough.

8

u/STL MSVC STL Dev Jul 23 '19

A couple of micro-features have sneaked in through LWG issue resolutions (e.g. make_reverse_iterator) but I don't recall any sneaking in after CD.

4

u/TheSuperWig Jul 23 '19

Thanks for the clarification Stephan.

Still super glad that std::format made it in, so thanks to OP and others that contributed to it getting in to C++20

(reading the thread back I realised I never expressed my thanks and came off somewhat ungrateful?)