Skip to content

Commit

Permalink
Utilize new concepts header in Callable
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroMemes committed Feb 5, 2023
1 parent 386c03d commit 88e4b01
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions include/libhat/Callable.hpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
#pragma once

#include <concepts>
#include <new>
#include <utility>

namespace hat::detail {

template<typename Fn, typename Ret>
concept supplier = requires(Fn&& fn) {
{ fn() } -> std::same_as<Ret>;
};
#include "Concepts.hpp"

template<typename Fn>
concept function = std::is_function_v<Fn>;
namespace hat::detail {

template<typename Func>
struct wrapper_util;
Expand Down

0 comments on commit 88e4b01

Please sign in to comment.