Skip to content

Commit 7c13b69

Browse files
author
Darth Vader
committed
Squashed 'src/' changes from b576c752..c369020d
c369020d 59 compiler error on macos (#60) git-subtree-dir: src git-subtree-split: c369020dbdaee3179efad614d3e841ed4b470ccf
1 parent ac58181 commit 7c13b69

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

gases.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -704,8 +704,7 @@ calc_gas_binary_parameter(std::string name1, std::string name2) const
704704
/* ---------------------------------------------------------------------- */
705705
{
706706
double f = 1.0;
707-
std::pair < std::string, std::string > p;
708-
p = { name1, name2 };
707+
std::pair<std::string, std::string> p(name1, name2);
709708
std::map<std::pair<std::string, std::string>, double>::const_iterator gas_pair_it;
710709
gas_pair_it = gas_binary_parameters.find(p);
711710
if (gas_pair_it != gas_binary_parameters.end())

read.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -2626,11 +2626,8 @@ read_gas_binary_parameters(void)
26262626
}
26272627
if (!error)
26282628
{
2629-
std::pair<std::string, std::string> p;
2630-
p = { gas1, gas2 };
2631-
gas_binary_parameters[p] = d;
2632-
p = { gas2, gas1 };
2633-
gas_binary_parameters[p] = d;
2629+
gas_binary_parameters[std::make_pair(gas1, gas2)] = d;
2630+
gas_binary_parameters[std::make_pair(gas2, gas1)] = d;
26342631
}
26352632
else
26362633
{

0 commit comments

Comments
 (0)