Closed dix75 closed 7 years ago
These features cannot be specialized by standard. Sorry
It's not absolutely true. The standard nothing says about that. But generally speaking, you right, also your proposal pretend to be including to new version of standard thus it will be better if you implement that structures as in another the fixed-point proposal (see that https://github.com/johnmcfarlane/fixed_point/blob/develop/include/sg14/numeric_traits) That structures were implemented in another namespace.
But your right, also it's not convenient.
We had those specializations in previous version of the library.
Direct instructions at the previous ISO C++ WG21 meeting were to remove those specializations, as they are wrong: is_signed
and is_unsigned
are meant to work for fundamental build in types only.
This may change later in SG6/EWG/LEWG/LWG groups. At this point SG6 plans to rely upon std::numeric_limits<>::is_signed
instead.
We had those specializations in previous version of the library.
ok
It will be better if you specialize the structures for wide_int types and those structures as well