Commit 51ffafa0 authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

util/BindMethod: use std::remove_reference_t

parent 8dca6023
...@@ -273,7 +273,7 @@ BindMethod(typename BindMethodDetail::MethodSignatureHelper<decltype(method)>::c ...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment