From 1d0cfc78b1e42272e6f21d1798ff810c962a982d Mon Sep 17 00:00:00 2001 From: namark <namark@disroot.org> Date: Wed, 16 Sep 2020 04:07:26 +0400 Subject: [PATCH] support::car is better now?? --- source/simple/geom/vector.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/simple/geom/vector.hpp b/source/simple/geom/vector.hpp index ca6cc44..a90ac97 100644 --- a/source/simple/geom/vector.hpp +++ b/source/simple/geom/vector.hpp @@ -125,10 +125,10 @@ namespace simple::geom { non_index = std::numeric_limits<size_t>::max(), new_index = non_index, - x_index = support::car<Order, 0>(non_index), - y_index = support::car<Order, 1>(non_index), - z_index = support::car<Order, 2>(non_index), - w_index = support::car<Order, 3>(non_index) + x_index = support::car<Order, 0, non_index>, + y_index = support::car<Order, 1, non_index>, + z_index = support::car<Order, 2, non_index>, + w_index = support::car<Order, 3, non_index> }; template <size_t index> @@ -409,7 +409,7 @@ namespace simple::geom constexpr const coordinate_type & get() const& { static_assert(dimension < Dimensions); - constexpr size_t index = support::car<Order, dimension>(); + constexpr size_t index = support::car<Order, dimension>; return raw[index]; } @@ -418,7 +418,7 @@ namespace simple::geom constexpr coordinate_type & get() & { static_assert(dimension < Dimensions); - constexpr size_t index = support::car<Order, dimension>(); + constexpr size_t index = support::car<Order, dimension>; return raw[index]; } -- GitLab