Skip to content

Commit

Permalink
Constructor and recursive cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gracicot committed Jul 29, 2024
1 parent 5a14863 commit d6f3b99
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 149 deletions.
3 changes: 3 additions & 0 deletions include/kangaru/detail/concepts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ namespace kangaru {
::new T{KANGARU5_FWD(args)...};
};

template<typename T, typename... Args>
concept constructor_callable = std::constructible_from<T, Args...> or brace_constructible<T, Args...>;

template<typename F, typename T, typename... Args>
concept callable_template1 = requires(F&& f, Args&&... args) {
KANGARU5_FWD(f).template operator()<T>(KANGARU5_FWD(args)...);
Expand Down
Loading

0 comments on commit d6f3b99

Please sign in to comment.