Skip to content

Commit cc8e3aa

Browse files
authored
work around gcc-14.2 discomfiture about constinit shared_ptr. (#1565)
1 parent af2b313 commit cc8e3aa

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

include/exec/__detail/__system_context_default_impl.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,10 @@ namespace exec::__system_context_default_impl {
301301
/// Keeps track of the backends for the system context interfaces.
302302
template <typename _Interface, typename _Impl>
303303
struct __instance_data {
304+
// work around for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119652
305+
constexpr __instance_data() noexcept // NOLINT(modernize-use-equals-default)
306+
{}
307+
304308
/// Gets the current instance; if there is no instance, uses the current factory to create one.
305309
auto __get_current_instance() -> std::shared_ptr<_Interface> {
306310
// If we have a valid instance, return it.

0 commit comments

Comments
 (0)