mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 05:17:26 +02:00
Move friend function template definition
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
Version 249:
|
||||||
|
|
||||||
|
* Move friend function template definition
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
Version 248:
|
Version 248:
|
||||||
|
|
||||||
* Don't use a moved-from handler
|
* Don't use a moved-from handler
|
||||||
|
@ -652,6 +652,24 @@ public:
|
|||||||
template<class SyncStream>
|
template<class SyncStream>
|
||||||
friend
|
friend
|
||||||
void
|
void
|
||||||
|
teardown(
|
||||||
|
boost::beast::role_type role,
|
||||||
|
ssl_stream<SyncStream>& stream,
|
||||||
|
boost::system::error_code& ec);
|
||||||
|
|
||||||
|
template<class AsyncStream, class TeardownHandler>
|
||||||
|
friend
|
||||||
|
void
|
||||||
|
async_teardown(
|
||||||
|
boost::beast::role_type role,
|
||||||
|
ssl_stream<AsyncStream>& stream,
|
||||||
|
TeardownHandler&& handler);
|
||||||
|
#endif
|
||||||
|
};
|
||||||
|
|
||||||
|
#if ! BOOST_BEAST_DOXYGEN
|
||||||
|
template<class SyncStream>
|
||||||
|
void
|
||||||
teardown(
|
teardown(
|
||||||
boost::beast::role_type role,
|
boost::beast::role_type role,
|
||||||
ssl_stream<SyncStream>& stream,
|
ssl_stream<SyncStream>& stream,
|
||||||
@ -663,7 +681,6 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<class AsyncStream, class TeardownHandler>
|
template<class AsyncStream, class TeardownHandler>
|
||||||
friend
|
|
||||||
void
|
void
|
||||||
async_teardown(
|
async_teardown(
|
||||||
boost::beast::role_type role,
|
boost::beast::role_type role,
|
||||||
@ -676,7 +693,6 @@ public:
|
|||||||
std::forward<TeardownHandler>(handler));
|
std::forward<TeardownHandler>(handler));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
};
|
|
||||||
|
|
||||||
} // beast
|
} // beast
|
||||||
} // boost
|
} // boost
|
||||||
|
Reference in New Issue
Block a user