diff --git a/src/cpp/common/algebraTrace.cpp b/src/cpp/common/algebraTrace.cpp index cec4875fa..9f1c90475 100644 --- a/src/cpp/common/algebraTrace.cpp +++ b/src/cpp/common/algebraTrace.cpp @@ -20,6 +20,9 @@ using std::map; #include #include #include +#include + +using boost::static_pointer_cast; map idStringMap; map stringIdMap; @@ -118,10 +121,10 @@ void spitQueuedToFile( default: std::cout << "ERROR: missing queued type " << spit.type; break; case E_SerialObject::FILTER_MINUS: //fallthrough case E_SerialObject::FILTER_PLUS: //fallthrough - case E_SerialObject::FILTER_SMOOTHED: { auto& kfState = *static_pointer_cast (spit.ptr); spitFilterToFile(kfState, spit.type, spit.filename); break; } + case E_SerialObject::FILTER_SMOOTHED: { auto& kfState = *static_pointer_cast (spit.ptr); spitFilterToFile(kfState, spit.type, spit.filename); break; } case E_SerialObject::TRANSITION_MATRIX: { auto& transitionObject = *static_pointer_cast (spit.ptr); spitFilterToFile(transitionObject, spit.type, spit.filename); break; } - case E_SerialObject::MEASUREMENT: { auto& kfMeas = *static_pointer_cast (spit.ptr); spitFilterToFile(kfMeas, spit.type, spit.filename); break; } - case E_SerialObject::METADATA: { auto& metatdata = *static_pointer_cast> (spit.ptr); spitFilterToFile(metatdata, spit.type, spit.filename); break; } + case E_SerialObject::MEASUREMENT: { auto& kfMeas = *static_pointer_cast (spit.ptr); spitFilterToFile(kfMeas, spit.type, spit.filename); break; } + case E_SerialObject::METADATA: { auto& metatdata = *static_pointer_cast> (spit.ptr); spitFilterToFile(metatdata, spit.type, spit.filename); break; } } }