diff --git a/lib/base/tlsstream.hpp b/lib/base/tlsstream.hpp index 5f5fc6d73..6156a3d2f 100644 --- a/lib/base/tlsstream.hpp +++ b/lib/base/tlsstream.hpp @@ -122,7 +122,7 @@ public: template inline - auto async_handshake(handshake_type type, Args&&... args) -> decltype(AsioTcpTlsStream::async_handshake(type, std::forward(args)...)) + auto async_handshake(handshake_type type, Args&&... args) -> decltype(((AsioTcpTlsStream*)nullptr)->async_handshake(type, std::forward(args)...)) { BeforeHandshake(type); @@ -131,7 +131,7 @@ public: template inline - auto handshake(handshake_type type, Args&&... args) -> decltype(AsioTcpTlsStream::handshake(type, std::forward(args)...)) + auto handshake(handshake_type type, Args&&... args) -> decltype(((AsioTcpTlsStream*)nullptr)->handshake(type, std::forward(args)...)) { BeforeHandshake(type);