Fixed some compile errors when no C++11 extensions are enabled
parent
96ea505dc7
commit
ae4999414d
|
@ -60,8 +60,8 @@ namespace {
|
|||
boost::make_shared<GaussianBayesTreeClique>(
|
||||
boost::make_shared<GaussianConditional>(conditional));
|
||||
clique->children.assign(children.begin(), children.end());
|
||||
BOOST_FOREACH(const GaussianBayesTreeClique::shared_ptr& child, children)
|
||||
child->parent_ = clique;
|
||||
for(typename CHILDREN::const_iterator child = children.begin(); child != children.end(); ++child)
|
||||
(*child)->parent_ = clique;
|
||||
return clique;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,8 +59,8 @@ namespace {
|
|||
boost::make_shared<SymbolicConditional>(
|
||||
SymbolicConditional::FromKeys(keys, nrFrontals)));
|
||||
clique->children.assign(children.begin(), children.end());
|
||||
BOOST_FOREACH(const SymbolicBayesTreeClique::shared_ptr& child, children)
|
||||
child->parent_ = clique;
|
||||
for(typename CHILDREN::const_iterator child = children.begin(); child != children.end(); ++child)
|
||||
(*child)->parent_ = clique;
|
||||
return clique;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue