I do believe C++'s inconsistencies will destroy me utterly one day.

But it is not this day. C++14 allows for not specifying the `&` in front of the member function
This commit is contained in:
ThePhD 2014-08-09 05:49:10 -07:00
parent f18bcedd46
commit 715efa6e20

View File

@ -169,7 +169,7 @@ template<typename Signature, bool b = has_deducible_signature<Signature>::value>
struct fx_traits;
template<typename Signature>
struct fx_traits<Signature, true> : fx_traits<decltype(Signature::operator()), false> {
struct fx_traits<Signature, true> : fx_traits<decltype(&Signature::operator()), false> {
};