[aGrUM] guidelines

parent b03c117f
Pipeline #19504021 passed with stages
in 67 minutes and 56 seconds
...@@ -57,7 +57,7 @@ namespace gum { ...@@ -57,7 +57,7 @@ namespace gum {
genericBNLearner::Database::idFromName(const std::string& var_name) const { genericBNLearner::Database::idFromName(const std::string& var_name) const {
try { try {
return __name2nodeId.second(const_cast< std::string& >(var_name)); return __name2nodeId.second(const_cast< std::string& >(var_name));
} catch (gum::NotFound& ) { } catch (gum::NotFound&) {
GUM_ERROR(MissingVariableInDatabase, "for variable " << var_name); GUM_ERROR(MissingVariableInDatabase, "for variable " << var_name);
} }
} }
......
...@@ -83,10 +83,10 @@ namespace gum { ...@@ -83,10 +83,10 @@ namespace gum {
addLabel(oss.str()); addLabel(oss.str());
} }
} }
INLINE LabelizedVariable::LabelizedVariable( INLINE
const std::string& aName, LabelizedVariable::LabelizedVariable(const std::string& aName,
const std::string& aDesc, const std::string& aDesc,
const std::vector< std::string >& labels) const std::vector< std::string >& labels)
: DiscreteVariable(aName, aDesc) { : DiscreteVariable(aName, aDesc) {
// for debugging purposes // for debugging purposes
GUM_CONSTRUCTOR(LabelizedVariable); GUM_CONSTRUCTOR(LabelizedVariable);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment