From d6e3ae08243f40336d70710c7e45cd12e2871237 Mon Sep 17 00:00:00 2001 From: namark <namark@disroot.org> Date: Mon, 19 Jul 2021 19:47:59 +0400 Subject: [PATCH] Comparison operators enabled for vectors of different coordinate types. --- source/simple/geom/bool_algebra.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/simple/geom/bool_algebra.hpp b/source/simple/geom/bool_algebra.hpp index a807306..debe257 100644 --- a/source/simple/geom/bool_algebra.hpp +++ b/source/simple/geom/bool_algebra.hpp @@ -34,13 +34,13 @@ namespace simple::geom // TODO: guess need to support compatibility_tag from support/array_operators.hpp :/ #define SIMPLE_GEOM_VECTOR_DEFINE_COMPARISON_OPERATOR(op, reduce_method) \ - template <typename C, size_t D, typename O, \ + template <typename C1, typename C2, size_t D, typename O, \ typename Bool = \ - typename vector<C, D, O>::template map_coordinate_t<bool> \ + typename vector<C1, D, O>::template map_coordinate_t<bool> \ > \ [[nodiscard]] \ constexpr reduction<reduce_method, Bool, bool> \ - operator op(const vector<C,D,O>& one, const vector<C,D,O>& other) \ + operator op(const vector<C1,D,O>& one, const vector<C2,D,O>& other) \ { \ Bool ret{}; \ for(size_t i = 0; i < D; ++i) \ -- GitLab