Skip to content

Commit

Permalink
Working around ROCm compiler issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Jan 8, 2024
1 parent f6f0fcd commit d0805e1
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 d0805e1

Please sign in to comment.