Skip to content

Commit

Permalink
Add constexpr to pro::dispatch::operator() per spec (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxwa committed Jun 15, 2022
1 parent 8f5d67d commit 06b3a59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct dispatch<R(Args...), CPO> {
using argument_types = std::tuple<Args...>;

template <class T> requires(std::is_invocable_v<decltype(CPO)&, T, Args...>)
decltype(auto) operator()(T&& value, Args&&... args) const
constexpr decltype(auto) operator()(T&& value, Args&&... args) const
{ return CPO(std::forward<T>(value), std::forward<Args>(args)...); }
};

Expand Down

0 comments on commit 06b3a59

Please sign in to comment.