common: Provide helper for getting member function traits
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 17 Sep 2018 21:39:37 +0000 (23:39 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 18 Nov 2018 10:06:43 +0000 (11:06 +0100)
commit004c48c0d8c943f366b94651e5a75f5e568f8a57
tree97e7585b5b01f1cd146056cb901934e9e2c5cc1a
parent6eefdfc697067d184a589fc8a231b16316c09106
common: Provide helper for getting member function traits

Add a new header funchelpers.h that contains helpers for dealing
with member function traits. MemberFunction<Callable> provides
the class, return and argument types of the given Callable, as well
as a compatible std::function type.
src/common/CMakeLists.txt
src/common/funchelpers.h [new file with mode: 0644]