Skip to content

Commit

Permalink
Squashed 'src/' changes from b576c752..c369020d
Browse files Browse the repository at this point in the history
c369020d 59 compiler error on macos (#60)

git-subtree-dir: src
git-subtree-split: c369020dbdaee3179efad614d3e841ed4b470ccf
  • Loading branch information
Darth Vader committed Nov 19, 2024
1 parent ac58181 commit 7c13b69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions gases.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,7 @@ calc_gas_binary_parameter(std::string name1, std::string name2) const
/* ---------------------------------------------------------------------- */
{
double f = 1.0;
std::pair < std::string, std::string > p;
p = { name1, name2 };
std::pair<std::string, std::string> p(name1, name2);
std::map<std::pair<std::string, std::string>, double>::const_iterator gas_pair_it;
gas_pair_it = gas_binary_parameters.find(p);
if (gas_pair_it != gas_binary_parameters.end())
Expand Down
7 changes: 2 additions & 5 deletions read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2626,11 +2626,8 @@ read_gas_binary_parameters(void)
}
if (!error)
{
std::pair<std::string, std::string> p;
p = { gas1, gas2 };
gas_binary_parameters[p] = d;
p = { gas2, gas1 };
gas_binary_parameters[p] = d;
gas_binary_parameters[std::make_pair(gas1, gas2)] = d;
gas_binary_parameters[std::make_pair(gas2, gas1)] = d;
}
else
{
Expand Down

0 comments on commit 7c13b69

Please # to comment.