Skip to content

Commit

Permalink
fix macos build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
greg7mdp committed Mar 6, 2022
1 parent 0526625 commit 910ac17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gtl/vec_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ auto slice(V&& v, int first = 0, int last = -1, int stride = 1)
// apply a unary function to every element of a vector, returning the vector of results
// ---------------------------------------------------------------------------------------
template<class F, class T, class A, template <class, class> class V>
requires std::invocable<F, T>
#ifndef _LIBCPP_VERSION // until this is available
requires std::invocable<F&, T>
#endif
auto map(F &&f, const V<T, A>& v)
{
using result_type = std::invoke_result_t<F, T>;
Expand Down

0 comments on commit 910ac17

Please sign in to comment.