http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58815
--- Comment #14 from ulf ---
i am happy with the explicit operator in std::decimal for now. however sooner
or later there will be another one who puzzels over other issues (traits,
limits, and all the functions that dont know std::decimal).
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58815
--- Comment #11 from ulf ---
i see evil implicit conversion.
i modified lines 254, 337 and 421 to
explicit operator long long() const { return (long long)__val; }
like suggested in n3407.
#include
int main(){
std::decimal::decimal32 x(10
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58815
ulf changed:
What|Removed |Added
CC||janis187 at us dot ibm.com
--- Comment #3 from ulf
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: q1 at oxyba dot de
it is not really a bug a rather something missing.
example:
#include
int main(){
std::decimal::decimal64 x(101.5001);
long y = static_cast(x); // throws an error
return