File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ ext/nlohmann/json.hpp:
11
11
curl -s https://raw.githubusercontent.com/nlohmann/json/develop/single_include/nlohmann/json.hpp > $@
12
12
13
13
clean ::
14
- rm -fr ext
14
+ rm -fr ext/nlohmann/json.hpp
15
15
16
16
# ------------------------------------------------------------------------------
17
17
include ../../.makefile/runtime.mk
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ namespace testml {
88
88
std::unordered_map<std::string, std::unique_ptr<details::FnHolder>> _fns;
89
89
90
90
public:
91
+ // PMF version, takes the object to call the function on
91
92
template <typename BridgeT, typename Fn>
92
93
auto bind (std::string const & name, BridgeT* obj, Fn fn)
93
94
-> typename std::enable_if<std::is_member_function_pointer<Fn>::value, void>::type {
@@ -97,6 +98,7 @@ namespace testml {
97
98
_fns[name] = std::make_unique<HolderType>(obj, std::move (fn));
98
99
}
99
100
101
+ // any other candidate
100
102
template <typename Fn>
101
103
auto bind (std::string const & name, Fn fn)
102
104
-> typename std::enable_if<!std::is_member_function_pointer<Fn>::value, void>::type {
You can’t perform that action at this time.
0 commit comments