Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deduction guides #22

Merged
merged 6 commits into from
Sep 11, 2017
Merged

Deduction guides #22

merged 6 commits into from
Sep 11, 2017

Conversation

johnmcfarlane
Copy link
Owner

No description provided.

- otherwise, default numeric_limits specialization is used and value is 0
…ides

- I bet there are one or two compilers which were C++17-ready before class
  template deduction was even in!
- cnl::const_integer removed:
  - replaced with std::integral_constant
  - file renamed to <cnl/integral_constant.h>
    - fixes bug in hexadecimal user-defined literal code
    - cnl::is_const_integer -> cnl::_impl::is_integral_constant
    - all operator overloads (except unary minus) removed from type
- fixed_point/elastic_integer c'tors relying on const_integer now take
  integral_constant and rely on deduction guides to deduce templates params
- added specialization of cnl::from_value for cnl::elastic_integer
  - specifically for converting from std::integral_constant
- added tests of fixed_point intialization from user-define literals
- CNL_NUMERIC_LIMITS_128_PROVIDED needs to be defined for clang >= 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant