remove_reference is not needed in async_completion constructor.

This commit is contained in:
Christopher Kohlhoff 2015-02-25 06:27:46 +01:00
parent 66e76b9e42
commit 91b3bb1c73

View File

@ -66,7 +66,7 @@ struct async_completion
*/
#if defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION)
explicit async_completion(
typename remove_reference<Handler>::type& orig_handler)
Handler& orig_handler)
: handler(static_cast<typename conditional<
is_same<Handler, handler_type>::value,
handler_type&, Handler&&>::type>(orig_handler)),