diff --git a/examples/SFMExample_SmartFactor.cpp b/examples/SFMExample_SmartFactor.cpp index 400ddd728..b3c5ee5fe 100644 --- a/examples/SFMExample_SmartFactor.cpp +++ b/examples/SFMExample_SmartFactor.cpp @@ -142,7 +142,7 @@ int main(int argc, char* argv[]) { boost::optional point; // The graph stores Factor shared_ptrs, so we cast back to a SmartFactor first - SmartFactor::shared_ptr smart = dynamic_pointer_cast(graph[j]); + SmartFactor::shared_ptr smart = boost::dynamic_pointer_cast(graph[j]); if (smart) { point = smart->point(result); if (point) // ignore if boost::optional return NULL