Think about conversion to integral type
A portable implementation of the proposed C++ std::decimal.
Status: Pre-Alpha
Brought to you by:
zeroth123
Standard defines operator int() a member of the decimals. This causes big problems when developing and testing, since if something is broken, you often won't notice as the decimal casts to int and finds a function that works.
As an example, operator<= was not defined for months, and this was only picked up when operator int() was disabled.
How do we want to manage this? Do we want to make it easy to toggle of operator int() in development code to ease testing?
PS: Now we know why
gccdisables this...