UnbufferedAsioTlsStream: don't rely on *this in decltype()s for methods' return types

This commit is contained in:
Alexander A. Klimov 2019-03-12 11:47:53 +01:00
parent 7ec1e638a8
commit bf23e5392b
1 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ public:
template<class... Args>
inline
auto async_handshake(handshake_type type, Args&&... args) -> decltype(AsioTcpTlsStream::async_handshake(type, std::forward<Args>(args)...))
auto async_handshake(handshake_type type, Args&&... args) -> decltype(((AsioTcpTlsStream*)nullptr)->async_handshake(type, std::forward<Args>(args)...))
{
BeforeHandshake(type);
@ -131,7 +131,7 @@ public:
template<class... Args>
inline
auto handshake(handshake_type type, Args&&... args) -> decltype(AsioTcpTlsStream::handshake(type, std::forward<Args>(args)...))
auto handshake(handshake_type type, Args&&... args) -> decltype(((AsioTcpTlsStream*)nullptr)->handshake(type, std::forward<Args>(args)...))
{
BeforeHandshake(type);