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

Added std::common_type<T, T> specialization to ensure the return type… #314

Open
wants to merge 4 commits into
base: v3.x
Choose a base branch
from

Commits on Mar 31, 2023

  1. Added std::common_type<T, T> specialization to ensure the return type…

    … of arithmetic operators matches the input type when the two inputs have the same type. That fixes ternary operator use cases.
    Guillaume227 committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    2dd3404 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    50042ca View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'origin/v3.x' into v3.x_common_type

    # Conflicts:
    #	include/units/core.h
    #	unitTests/main.cpp
    Guillaume227 committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    4c7d963 View commit details
    Browse the repository at this point in the history
  4. Added std::common_type<T, T> specialization to ensure the return type…

    … of arithmetic operators matches the input type when the two inputs have the same type. That fixes ternary operator use cases.
    Guillaume227 committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    d7efa5a View commit details
    Browse the repository at this point in the history