Mercurial Hosting > traffic-intelligence
diff include/testutils.hpp @ 654:045d05cef9d0
updating to c++11 capabilities
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Thu, 07 May 2015 16:09:47 +0200 |
parents | f7ddfc4aeb1e |
children |
line wrap: on
line diff
--- a/include/testutils.hpp Thu May 07 13:25:31 2015 +0200 +++ b/include/testutils.hpp Thu May 07 16:09:47 2015 +0200 @@ -5,11 +5,9 @@ #include "opencv2/core/core.hpp" -#include <boost/shared_ptr.hpp> - -inline boost::shared_ptr<FeatureTrajectory> createFeatureTrajectory(const unsigned int& id, const unsigned int& firstInstant, const unsigned int& lastInstant, const cv::Point2f& firstPosition, const cv::Point2f& velocity) { +inline std::shared_ptr<FeatureTrajectory> createFeatureTrajectory(const unsigned int& id, const unsigned int& firstInstant, const unsigned int& lastInstant, const cv::Point2f& firstPosition, const cv::Point2f& velocity) { cv::Mat emptyHomography; - boost::shared_ptr<FeatureTrajectory> t = boost::shared_ptr<FeatureTrajectory>(new FeatureTrajectory(firstInstant, firstPosition, emptyHomography)); + std::shared_ptr<FeatureTrajectory> t = std::shared_ptr<FeatureTrajectory>(new FeatureTrajectory(firstInstant, firstPosition, emptyHomography)); cv::Point2f p = firstPosition; for (unsigned int i=firstInstant+1; i<=lastInstant; ++i) { p = p+velocity;