mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 22:24:44 +02:00
UnbufferedAsioTlsStream: don't rely on *this in decltype()s for methods' return types
This commit is contained in:
parent
7ec1e638a8
commit
bf23e5392b
@ -122,7 +122,7 @@ public:
|
|||||||
|
|
||||||
template<class... Args>
|
template<class... Args>
|
||||||
inline
|
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);
|
BeforeHandshake(type);
|
||||||
|
|
||||||
@ -131,7 +131,7 @@ public:
|
|||||||
|
|
||||||
template<class... Args>
|
template<class... Args>
|
||||||
inline
|
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);
|
BeforeHandshake(type);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user