Skip to content

Commit

Permalink
Merge pull request #6406 from STEllAR-GROUP/fixing_6405
Browse files Browse the repository at this point in the history
Working around ROCm compiler issue
  • Loading branch information
hkaiser authored Jan 10, 2024
2 parents fcac367 + d0805e1 commit 6db7cad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/core/program_options/src/value_semantic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string> alternatives_set(
m_alternatives.begin(), m_alternatives.end());
std::vector<std::string> const alternatives_vec(
alternatives_set.begin(), alternatives_set.end());

error_template += " and matches ";
Expand Down

0 comments on commit 6db7cad

Please sign in to comment.