Fixed passing temporary as non-const reference that doesn't compile on GCC

release/4.3a0
Richard Roberts 2013-08-15 14:12:42 +00:00
parent 174c2da7d9
commit 8eecbf377c
1 changed files with 2 additions and 1 deletions

View File

@ -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);
} }
} }