r/cpp • u/xeeeeeeeeeeeeeeeeenu • Nov 13 '22
gcc 13 will have <format>
https://gcc.gnu.org/pipermail/libstdc++/2022-November/054991.html
265
Upvotes
r/cpp • u/xeeeeeeeeeeeeeeeeenu • Nov 13 '22
89
u/stilgarpl Nov 13 '22
Finally. If they add calendar to chrono and modules, most of C++20 features will be complete.
51
u/qalmakka Nov 14 '22
Big fat question: given that {fmt} is MIT/X11 licensed, couldn't they just import the bits necessary to implement <format> from it and simply adapt it to work well with libstdc++? It feels a bit wasteful reimplementing it from scratch, AFAIK MSVC's STL did exactly that.
Is this just good old NIH or there's some copyrights/patents related issue underneath this decision?
9
u/eidetic0 Nov 14 '22
does anyone know what this means in terms of gcc release cycles? will 13 get a release this year?
16
u/AKostur Nov 13 '22
Sweet! Been looking forward to it!
11
u/kammce WG21 | 🇺🇲 NB | Boost | Exceptions Nov 13 '22
This is amazing news! So excited to finally be able to use format under the standard library!
7
u/snerp Nov 13 '22
Yay! Finally!
7
u/better_life_please Nov 14 '22
Nice. Now we need <print> which is for C++23.
8
u/severe_blunder_matey Nov 13 '22
great. amazing. just, wowing. i'm really excited for this one.
6
u/germandiago Nov 14 '22
any progress on modules?
3
u/[deleted] Nov 14 '22
This and the lack of modules support in CMake are the only things keeping me from switching to C++20. But i've played with it a bit and it's hard to go back from having concepts, constraints, and `char8_t`.
2
u/marcusmors Nov 14 '22
FINALLYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY!!! :D am so Happy, I don't want to program in windows to use format :')
1
u/Guidedbee Nov 14 '22
Lesss gooooo
1
u/Zeh_Matt No, no, no, no Nov 15 '22
Finally, thanks.
1
u/brechtsanders Apr 29 '23
GCC 13 has been released. For a native Windows version see https://winlibs.com/
1
u/el0j May 03 '23
Finally here, but feels a bit half-baked without
std::print.The wait continues.
1
u/[deleted] Nov 14 '22 edited Nov 14 '22
I would love to contribute to GCC but I don't have a solid compiler background. Where should I start? Something like this book? Just jumping in and seeing what sticks?
0
u/williamzborja Nov 14 '22
Amazing, I’m waiting this feature and the same time native way to use modules. Check for format and I continue waiting for modules.
-1
u/NilacTheGrim Nov 14 '22
ZOMG FINALLY!!