diff options
author | Tor Egge <Tor.Egge@yahooinc.com> | 2023-06-20 20:39:10 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@yahooinc.com> | 2023-06-20 20:39:10 +0200 |
commit | d3954e4a58d780e2c224d56b532894a5687159b7 (patch) | |
tree | db6421ab38fca6df0a864dd9f0edd17c26d81113 /vespalib | |
parent | bfcbaf4deea360bb073b7562b2e3c6bd26378f10 (diff) |
Avoid warning about missing typename in nexus.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/test/nexus.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/test/nexus.h b/vespalib/src/vespa/vespalib/test/nexus.h index aeb9337b975..f3b77b9bcc1 100644 --- a/vespalib/src/vespa/vespalib/test/nexus.h +++ b/vespalib/src/vespa/vespalib/test/nexus.h @@ -38,7 +38,7 @@ public: ThreadPool pool; using result_t = std::decay_t<decltype(entry(std::declval<Nexus&>()))>; constexpr bool is_void = std::same_as<result_t, void>; - using stored_t = std::conditional<is_void, std::monostate, result_t>::type; + using stored_t = std::conditional_t<is_void, std::monostate, result_t>; std::mutex lock; std::optional<stored_t> result; auto handle_result = [&](stored_t thread_result) noexcept { |