59 compiler error on macos (#60)

* Closes usgs-coupled/iphreeqc#59
This commit is contained in:
Charlton, Scott R 2024-11-18 18:10:42 -07:00 committed by GitHub
parent ce34aa5e05
commit 3fd5b896c9
2 changed files with 3 additions and 7 deletions

View File

@ -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())

View File

@ -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
{