From d0805e15f83be3006f605237adbb0e58ff790337 Mon Sep 17 00:00:00 2001 From: Hartmut Kaiser Date: Mon, 8 Jan 2024 13:42:58 -0600 Subject: [PATCH] Working around ROCm compiler issue --- libs/core/program_options/src/value_semantic.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/core/program_options/src/value_semantic.cpp b/libs/core/program_options/src/value_semantic.cpp index ff991b4c52a7..c11f4bde1bc7 100644 --- a/libs/core/program_options/src/value_semantic.cpp +++ b/libs/core/program_options/src/value_semantic.cpp @@ -379,8 +379,9 @@ namespace hpx::program_options { std::string error_template = original_error_template; // remove duplicates using std::set - std::set alternatives_set(m_alternatives.begin(), m_alternatives.end()); - std::vector const alternatives_vec( + std::set alternatives_set( + m_alternatives.begin(), m_alternatives.end()); + std::vector const alternatives_vec( alternatives_set.begin(), alternatives_set.end()); error_template += " and matches ";