Fix compile error on clang14.0.3 (#577)

Fixes #578
This commit is contained in:
cyan317
2023-04-04 12:55:43 +01:00
committed by GitHub
parent a1f93b09f7
commit 3320125d8f
5 changed files with 5 additions and 10 deletions

View File

@@ -111,7 +111,7 @@ synchronous(F&& f)
* R is the currently executing coroutine that is about to get passed.
* If corountine types do not match, the current one's type is stored.
*/
using R = typename std::result_of<F(boost::asio::yield_context&)>::type;
using R = typename boost::result_of<F(boost::asio::yield_context&)>::type;
if constexpr (!std::is_same<R, void>::value)
{
/**

View File

@@ -178,7 +178,7 @@ public:
{
for (auto const& handler : handlers)
{
handlerMap_[handler.method] = move(handler);
handlerMap_[handler.method] = std::move(handler);
}
}