Fixed passing temporary as non-const reference that doesn't compile on GCC
parent
174c2da7d9
commit
8eecbf377c
|
@ -113,7 +113,8 @@ namespace gtsam {
|
||||||
{
|
{
|
||||||
BOOST_FOREACH(const boost::shared_ptr<NODE>& child, node->children)
|
BOOST_FOREACH(const boost::shared_ptr<NODE>& child, node->children)
|
||||||
{
|
{
|
||||||
processNode(child, visitorPre(child, myData));
|
DATA childData = visitorPre(child, myData);
|
||||||
|
processNode(child, childData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue