Skip to content

Commit 70e890d

Browse files
GordonSmithCopilot
andauthored
Update include/cmcpp/runtime.hpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 18a4bb4 commit 70e890d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/cmcpp/runtime.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ namespace cmcpp
116116

117117
inline std::shared_ptr<Thread> Thread::create(Store &store, ReadyFn ready, ResumeFn resume, bool cancellable, CancelFn on_cancel)
118118
{
119-
auto thread = std::shared_ptr<Thread>(new Thread(store, std::move(ready), std::move(resume), cancellable, std::move(on_cancel)));
119+
auto thread = std::make_shared<Thread>(store, std::move(ready), std::move(resume), cancellable, std::move(on_cancel));
120120
store.schedule(thread);
121121
return thread;
122122
}

0 commit comments

Comments
 (0)