util/BindMethod: use std::remove_reference_t

This commit is contained in:
Max Kellermann 2021-12-02 22:24:38 +01:00 committed by Max Kellermann
parent 8dca602346
commit 51ffafa011

@ -273,7 +273,7 @@ BindMethod(typename BindMethodDetail::MethodSignatureHelper<decltype(method)>::c
* Shortcut wrapper for BIND_METHOD() which assumes "*this" is the * Shortcut wrapper for BIND_METHOD() which assumes "*this" is the
* instance to be bound. * instance to be bound.
*/ */
#define BIND_THIS_METHOD(method) BIND_METHOD(*this, &std::remove_reference<decltype(*this)>::type::method) #define BIND_THIS_METHOD(method) BIND_METHOD(*this, &std::remove_reference_t<decltype(*this)>::method)
/** /**
* Construct a #BoundMethod instance for a plain function. * Construct a #BoundMethod instance for a plain function.