Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mockingbirdnest/Principia
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3538679621dc
Choose a base ref
...
head repository: mockingbirdnest/Principia
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5d762b2fea2a
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Jul 4, 2020

  1. Use CONSTEXPR_CHECK.

    pleroy committed Jul 4, 2020
    Copy the full SHA
    a5a5f24 View commit details
  2. Merge pull request #2627 from pleroy/Clang

    Use CONSTEXPR_CHECK to try to fix Clang errors
    pleroy authored Jul 4, 2020
    Copy the full SHA
    5d762b2 View commit details
Showing with 3 additions and 3 deletions.
  1. +3 −3 numerics/polynomial_body.hpp
6 changes: 3 additions & 3 deletions numerics/polynomial_body.hpp
Original file line number Diff line number Diff line change
@@ -469,7 +469,7 @@ operator+(
PolynomialInMonomialBasis<Value, Argument, rdegree_, Evaluator> const&
right) {
if constexpr (is_instance_of_v<Point, Argument>) {
CHECK_EQ(left.origin_, right.origin_);
CONSTEXPR_CHECK(left.origin_ == right.origin_);
return PolynomialInMonomialBasis<Value, Argument,
std::max(ldegree_, rdegree_), Evaluator>(
left.coefficients_ + right.coefficients_,
@@ -491,7 +491,7 @@ operator-(
PolynomialInMonomialBasis<Value, Argument, rdegree_, Evaluator> const&
right) {
if constexpr (is_instance_of_v<Point, Argument>) {
CHECK_EQ(left.origin_, right.origin_);
CONSTEXPR_CHECK(left.origin_ == right.origin_);
return PolynomialInMonomialBasis<Value, Argument,
std::max(ldegree_, rdegree_), Evaluator>(
left.coefficients_ - right.coefficients_,
@@ -572,7 +572,7 @@ operator*(
PolynomialInMonomialBasis<RValue, Argument, rdegree_, Evaluator> const&
right) {
if constexpr (is_instance_of_v<Point, Argument>) {
CHECK_EQ(left.origin_, right.origin_);
CONSTEXPR_CHECK(left.origin_ == right.origin_);
return PolynomialInMonomialBasis<Product<LValue, RValue>, Argument,
ldegree_ + rdegree_, Evaluator>(
left.coefficients_ * right.coefficients_,