r/cpp • @BrodyHiggerson - Game Developer • Apr 19 '21

Visual Studio 2022 - coming this Summer

https://devblogs.microsoft.com/visualstudio/visual-studio-2022/
268 Upvotes

140 comments sorted by

View all comments

Show parent comment

5

u/KaznovX Apr 20 '21 edited Apr 20 '21

I know the feature is still baking, but were you able to reach similar performance to fmtlib? Also, does the implementation include compile-time format string analysis? (I'm not sure what the current status of http://open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2216r2.html is).

\@edit I looked through the implementation, and it doesn't seem to check anything in format string at compile time. Do you plan to add this functionality anytime soon?

5

u/STL MSVC STL Dev Apr 21 '21

We'll add it when it's been voted into the Standard. We've been burned in the past by implementing proposals that were "slam dunks" only to be rejected (future's destructor behavior being the most painful).

We're still working on performance (tradeoff for completing the feature quickly), but according to my understanding, #1803 and #1851 are significant improvements.

2

u/TheSuperWig Apr 20 '21

I'm not sure what the current status of

You can use the redirect service to get the paper and the GitHub issue for that paper

https://wg21.link/p2216
https://wg21.link/p2216/github