Skip to content

Commit

Permalink
test: relative_point_origin construction simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Aug 15, 2023
1 parent 542668e commit 1d822d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/unit_test/static/concepts_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,7 @@ static_assert(!QuantityLike<int>);
// QuantityPoint
inline constexpr struct my_origin : absolute_point_origin<isq::length> {
} my_origin;
inline constexpr struct my_relative_origin :
relative_point_origin<quantity_point<isq::length[si::metre]>{42 * si::metre}> {
inline constexpr struct my_relative_origin : relative_point_origin<quantity_point{isq::length(42 * si::metre)}> {
} my_relative_origin;

static_assert(QuantityPoint<quantity_point<si::metre>>);
Expand Down

0 comments on commit 1d822d0

Please sign in to comment.