diff options
-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 { |