Skip to content

Commit 0063bef

Browse files
make_continuation tries to avoid warnings
1 parent f44f3a1 commit 0063bef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/boost/capy/asio/detail/continuation.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,10 @@ continuation & make_continuation(
122122
Function && func,
123123
Allocator && alloc)
124124
{
125-
return detail::make_continuation_helper(
125+
continuation & c = detail::make_continuation_helper(
126126
std::forward<Function>(func),
127127
std::forward<Allocator>(alloc)).cont;
128+
return c;
128129
}
129130

130131
}

0 commit comments

Comments
 (0)