commit | f8d9a531dd6c56207f6b2b58df881b4fe2703e60 | [log] [tgz] |
---|---|---|
author | Davide Pesavento <davidepesa@gmail.com> | Sat Jul 03 16:04:12 2021 -0400 |
committer | Davide Pesavento <davidepesa@gmail.com> | Fri Jul 30 20:35:06 2021 -0400 |
tree | 9859ef083c58af7a44a14029dd6b1c4201b18d73 | |
parent | e8c82ef8a111549a713c53440310479d502f2099 [diff] [blame] |
Eradicate all uses of std::bind() Change-Id: I6e1ccf2d87b76142e6d519c1a288d03022e4d167
diff --git a/core/common.hpp b/core/common.hpp index dd6d4fb..34da654 100644 --- a/core/common.hpp +++ b/core/common.hpp
@@ -76,4 +76,7 @@ } // namespace ndn +#define FORWARD_TO_MEM_FN(func) \ + [this] (auto&&... args) { this->func(std::forward<decltype(args)>(args)...); } + #endif // NDN_TOOLS_CORE_COMMON_HPP