Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why wasn't the proposal for decimal floating point arithmetic accepted into C++0x?

Why wasn't the decimal type accepted into C++0x (now C++11) either as a fully fledged type or as a class?

They worked on it from 2005 after a fairly scathing critique in 2004 and the last paper for it was 2009 and looking through it, seems pretty complete. Were the concerns raised in 2004 the basis for rejecting it despite most of the issues being resolved?

There isn't even an implementation of it in boost (though there is some discussion of it in the mailing list earlier in the year).

like image 878
graham.reeds Avatar asked Feb 20 '23 01:02

graham.reeds


1 Answers

C++11 was very rushed for time. They really couldn't go around including every old thing that came along. In 2009 it was becoming obvious that it would be quite late, and they simply didn't consider it. However, N3407 indicates a proposal to accept it for (hopefully) C++17.

like image 167
Puppy Avatar answered Feb 21 '23 15:02

Puppy