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

Enable operator-sensitive extension of element-type promotion #12292

Merged
merged 3 commits into from
Jul 29, 2015

Commits on Jul 29, 2015

  1. Add promote_op, which uses inference to determine types (fixes #8027)

    promote_op(F, R, S) computes the output type of F(r, s), where
    r::R and s::S. This fixes the problem that arises from relying
    on promote_type(R, S) when the result type depends on F.
    timholy committed Jul 29, 2015
    Configuration menu
    Copy the full SHA
    0964c22 View commit details
    Browse the repository at this point in the history
  2. Don't use inference in promote_op, just fall back to promote_type.

    Also adds developer documentation on overloading `promote_op`.
    timholy committed Jul 29, 2015
    Configuration menu
    Copy the full SHA
    68207e8 View commit details
    Browse the repository at this point in the history
  3. 1 Configuration menu
    Copy the full SHA
    2b8a8d3 View commit details
    Browse the repository at this point in the history