@@ -32,16 +32,16 @@ namespace orc_rt {
32
32
33
33
namespace move_only_function_detail {
34
34
35
- template <typename RetT, typename ... ArgTs> class Callable {
35
+ template <typename RetT, typename ... ArgTs> class GenericCallable {
36
36
public:
37
- virtual ~Callable () = default ;
37
+ virtual ~GenericCallable () = default ;
38
38
virtual RetT call (ArgTs &&...Args) = 0;
39
39
};
40
40
41
41
template <typename CallableT, typename RetT, typename ... ArgTs>
42
- class CallableImpl : public Callable <RetT, ArgTs...> {
42
+ class GenericCallableImpl : public GenericCallable <RetT, ArgTs...> {
43
43
public:
44
- CallableImpl (CallableT &&Callable) : Callable(std::move(Callable)) {}
44
+ GenericCallableImpl (CallableT &&Callable) : Callable(std::move(Callable)) {}
45
45
RetT call (ArgTs &&...Args) override {
46
46
return Callable (std::forward<ArgTs>(Args)...);
47
47
}
@@ -66,7 +66,7 @@ class move_only_function<RetT(ArgTs...)> {
66
66
67
67
template <typename CallableT>
68
68
move_only_function (CallableT &&Callable)
69
- : C(std::make_unique<move_only_function_detail::CallableImpl <
69
+ : C(std::make_unique<move_only_function_detail::GenericCallableImpl <
70
70
std::decay_t <CallableT>, RetT, ArgTs...>>(std::move(Callable))) {}
71
71
72
72
RetT operator ()(ArgTs... Params) {
@@ -76,7 +76,7 @@ class move_only_function<RetT(ArgTs...)> {
76
76
explicit operator bool () const { return !!C; }
77
77
78
78
private:
79
- std::unique_ptr<move_only_function_detail::Callable <RetT, ArgTs...>> C;
79
+ std::unique_ptr<move_only_function_detail::GenericCallable <RetT, ArgTs...>> C;
80
80
};
81
81
82
82
} // namespace orc_rt
0 commit comments