fixing compile issues on vc++14
parent
8dfa38f943
commit
9f30d225fe
|
@ -116,7 +116,7 @@ if(MSVC)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(Boost 1.43 COMPONENTS serialization system filesystem thread program_options date_time timer chrono)
|
find_package(Boost 1.43 COMPONENTS serialization system filesystem thread program_options date_time timer chrono regex)
|
||||||
|
|
||||||
# Required components
|
# Required components
|
||||||
if(NOT Boost_SERIALIZATION_LIBRARY OR NOT Boost_SYSTEM_LIBRARY OR NOT Boost_FILESYSTEM_LIBRARY OR
|
if(NOT Boost_SERIALIZATION_LIBRARY OR NOT Boost_SYSTEM_LIBRARY OR NOT Boost_FILESYSTEM_LIBRARY OR
|
||||||
|
|
|
@ -87,7 +87,7 @@ bool DiscreteConditional::equals(const DiscreteFactor& other,
|
||||||
Potentials::ADT DiscreteConditional::choose(const Values& parentsValues) const {
|
Potentials::ADT DiscreteConditional::choose(const Values& parentsValues) const {
|
||||||
ADT pFS(*this);
|
ADT pFS(*this);
|
||||||
Key j; size_t value;
|
Key j; size_t value;
|
||||||
for(Key key: parents())
|
for(Key key: parents()) {
|
||||||
try {
|
try {
|
||||||
j = (key);
|
j = (key);
|
||||||
value = parentsValues.at(j);
|
value = parentsValues.at(j);
|
||||||
|
@ -95,9 +95,11 @@ Potentials::ADT DiscreteConditional::choose(const Values& parentsValues) const {
|
||||||
} catch (exception&) {
|
} catch (exception&) {
|
||||||
cout << "Key: " << j << " Value: " << value << endl;
|
cout << "Key: " << j << " Value: " << value << endl;
|
||||||
parentsValues.print("parentsValues: ");
|
parentsValues.print("parentsValues: ");
|
||||||
// pFS.print("pFS: ");
|
// pFS.print("pFS: ");
|
||||||
throw runtime_error("DiscreteConditional::choose: parent value missing");
|
throw runtime_error("DiscreteConditional::choose: parent value missing");
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
return pFS;
|
return pFS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue