summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahooinc.com>2023-06-20 20:39:10 +0200
committerTor Egge <Tor.Egge@yahooinc.com>2023-06-20 20:39:10 +0200
commitd3954e4a58d780e2c224d56b532894a5687159b7 (patch)
treedb6421ab38fca6df0a864dd9f0edd17c26d81113 /vespalib
parentbfcbaf4deea360bb073b7562b2e3c6bd26378f10 (diff)
Avoid warning about missing typename in nexus.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/test/nexus.h2
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 {