Skip to content

Why are C++ version of fpclassify and its friends provided by UCRT? #2773

Answered by amyw-msft
frederick-vs-ja asked this question in Q&A
Discussion options

You must be logged in to vote

I believe this is mostly historical, but that decision is now locked to maintain compatibility. The fpclassify function is a C function, so when the C Runtime was split from the VC++ Redistributable and added to the Windows OS as the Universal C Runtime (for VS 2015), fpclassify went with it as a member of math.h. The STL header cmath has historically simply imported it into the std namespace, like many other C math.h functions.

The Universal C Runtime ships with the Windows OS and Windows SDK instead of the VC++ Redistributable, so there are build and runtime complications involved in updating it consistently to match a C++ standard, let alone 'transfer' the function implementation from …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@frederick-vs-ja
Comment options

Answer selected by frederick-vs-ja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants