Skip to content

Commit

Permalink
ParmParse queryAddWithParser No Const
Browse files Browse the repository at this point in the history
`ParmParse::queryAddWithParser` might manipulate the internal state
and should not be a const method.
  • Loading branch information
ax3l committed Jan 6, 2025
1 parent d9c5760 commit 2e6e7ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_ParmParse.H
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ public:
std::is_same_v<T,long long> ||
std::is_same_v<T,float> ||
std::is_same_v<T,double>,int> = 0>
int queryAddWithParser (const char* name, T& ref) const
int queryAddWithParser (const char* name, T& ref)
{
int exist = this->queryWithParser(name, ref);
if (!exist) {
Expand Down

0 comments on commit 2e6e7ee

Please sign in to comment.