diff --git a/include/ircd/ctx/future.h b/include/ircd/ctx/future.h index 555d61ca6..9a69efb82 100644 --- a/include/ircd/ctx/future.h +++ b/include/ircd/ctx/future.h @@ -116,26 +116,26 @@ noexcept } inline -ircd::ctx::future::future(): -st(nullptr) +ircd::ctx::future::future() +:st{nullptr} { } template -ircd::ctx::future::future(): -st(nullptr) +ircd::ctx::future::future() +:st{nullptr} { } inline -ircd::ctx::future::future(promise &promise): -st(promise.get_state().share()) +ircd::ctx::future::future(promise &promise) +:st{promise.get_state().share()} { } template -ircd::ctx::future::future(promise &promise): -st(promise.get_state().share()) +ircd::ctx::future::future(promise &promise) +:st{promise.get_state().share()} { } diff --git a/include/ircd/ctx/promise.h b/include/ircd/ctx/promise.h index ff0764b1b..e316bdc5f 100644 --- a/include/ircd/ctx/promise.h +++ b/include/ircd/ctx/promise.h @@ -40,9 +40,9 @@ class ircd::ctx::promise std::shared_ptr> st; public: - using value_type = typename shared_state::value_type; - using pointer_type = typename shared_state::pointer_type; - using reference_type = typename shared_state::reference_type; + using value_type = typename shared_state::value_type; + using pointer_type = typename shared_state::pointer_type; + using reference_type = typename shared_state::reference_type; bool valid() const { return bool(st); } bool operator!() const { return !valid(); } @@ -70,7 +70,7 @@ class ircd::ctx::promise std::shared_ptr> st; public: - using value_type = typename shared_state::value_type; + using value_type = typename shared_state::value_type; bool valid() const { return bool(st); } bool operator!() const { return !valid(); } @@ -90,21 +90,21 @@ class ircd::ctx::promise }; inline -ircd::ctx::promise::promise(): -st(std::make_shared>()) +ircd::ctx::promise::promise() +:st{std::make_shared>()} { } template -ircd::ctx::promise::promise(): -st(std::make_shared>()) +ircd::ctx::promise::promise() +:st{std::make_shared>()} { } template ircd::ctx::promise::promise(promise &&o) -noexcept: -st(std::move(o.st)) +noexcept +:st{std::move(o.st)} { }