diff options
-rw-r--r-- | lib/collections.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/collections.h b/lib/collections.h index 27eff0a..b921424 100644 --- a/lib/collections.h +++ b/lib/collections.h @@ -45,6 +45,7 @@ operator*(const std::array<T, first> & a, const std::array<V, second> & b) template<typename T, std::size_t N> [[nodiscard]] constexpr auto operator*(const std::array<T, N> & in, auto && f) + requires requires { f(in.front()); } { std::array<decltype(f(in[0])), N> out; |