Skip to content

Commit d7c0760

Browse files
committed
work around gcc-14.2 discomfiture about constinit shared_ptr. fixes #1520
1 parent af2b313 commit d7c0760

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/exec/__detail/__system_context_default_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,11 @@ namespace exec::__system_context_default_impl {
338338
return __old_factory;
339339
}
340340

341-
private:
342341
std::atomic<bool> __instance_locked_{false};
343342
std::shared_ptr<_Interface> __instance_{nullptr};
344343
std::atomic<__parallel_scheduler_backend_factory> __factory_{__default_factory};
345344

345+
private:
346346
/// The default factory returns an instance of `_Impl`.
347347
static auto __default_factory() -> std::shared_ptr<_Interface> {
348348
return std::make_shared<_Impl>();

0 commit comments

Comments
 (0)