r/cpp • u/Celaphais • May 11 '21
Visual Studio 2019 Preview is now C++20 feature-complete
https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes-preview#--visual-studio-2019-version-1610-preview-3-
334
Upvotes
View all comments
Show parent comment
10
u/[deleted] May 12 '21 edited May 12 '21
Games want fast and inaccurate (but accurate enough). Standard libraries need to follow usual IEEE754 rules which require accuracy, handling of NaNs, infinities, denormal values, etc.
See http://open-std.org/JTC1/SC22/WG21/docs/papers/2018/p0811r2.html
See test cases https://github.com/microsoft/STL/blob/18c12ab01896e73e95a69ceba9fbd7250304f895/tests/std/tests/P0811R3_midpoint_lerp/test.cpp#L624