Skip to content

Commit 2800ebe

Browse files
committed
common/async: fix multiple definition errors with spawn_throttle_impl
Signed-off-by: Casey Bodley <[email protected]>
1 parent 58bffab commit 2800ebe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/common/async/detail/spawn_throttle_impl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ struct spawn_throttle_handler {
169169
}
170170
};
171171

172-
spawn_throttle_handler spawn_throttle_impl::get()
172+
inline spawn_throttle_handler spawn_throttle_impl::get()
173173
{
174174
report_exception(); // throw unreported exception
175175

@@ -345,8 +345,8 @@ class async_spawn_throttle_impl final :
345345
}
346346
};
347347

348-
auto spawn_throttle_impl::create(optional_yield y, size_t limit,
349-
cancel_on_error on_error)
348+
inline auto spawn_throttle_impl::create(optional_yield y, size_t limit,
349+
cancel_on_error on_error)
350350
-> boost::intrusive_ptr<spawn_throttle_impl>
351351
{
352352
if (y) {

0 commit comments

Comments
 (0)