fix namespace

release/4.3a0
Yong-Dian Jian 2014-06-22 23:52:59 -04:00
parent d8a8d459ae
commit c93c9f1863
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ int main(int argc, char* argv[]) {
boost::optional<Point3> point; boost::optional<Point3> point;
// The graph stores Factor shared_ptrs, so we cast back to a SmartFactor first // The graph stores Factor shared_ptrs, so we cast back to a SmartFactor first
SmartFactor::shared_ptr smart = dynamic_pointer_cast<SmartFactor>(graph[j]); SmartFactor::shared_ptr smart = boost::dynamic_pointer_cast<SmartFactor>(graph[j]);
if (smart) { if (smart) {
point = smart->point(result); point = smart->point(result);
if (point) // ignore if boost::optional return NULL if (point) // ignore if boost::optional return NULL