Mercurial Hosting > traffic-intelligence
comparison c/Parameters.cpp @ 230:bc4ea09b1743
compatibility modifications for visual studio compilation
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 29 Jun 2012 16:15:13 -0400 |
parents | 0e60a306d324 |
children | 249d65ff6c35 |
comparison
equal
deleted
inserted
replaced
207:48f83ff769fd | 230:bc4ea09b1743 |
---|---|
93 } | 93 } |
94 } | 94 } |
95 | 95 |
96 string KLTFeatureTrackingParameters::getParameterDescription(po::options_description& options, const po::variables_map& vm, const string& separator /* = " " */) const { | 96 string KLTFeatureTrackingParameters::getParameterDescription(po::options_description& options, const po::variables_map& vm, const string& separator /* = " " */) const { |
97 stringstream stream; | 97 stringstream stream; |
98 vector<boost::shared_ptr<po::option_description> > optionsVec = options.options(); | 98 std::vector<boost::shared_ptr<po::option_description> > optionsVec = options.options(); |
99 for (unsigned int i=0; i<optionsVec.size(); ++i) { | 99 for (unsigned int i=0; i<optionsVec.size(); ++i) { |
100 boost::any value = vm[optionsVec[i]->long_name()].value(); | 100 boost::any value = vm[optionsVec[i]->long_name()].value(); |
101 if (value.type() == typeid(bool)) | 101 if (value.type() == typeid(bool)) |
102 stream << boost::any_cast<bool>(value) << separator; | 102 stream << boost::any_cast<bool>(value) << separator; |
103 else if (value.type() == typeid(int)) | 103 else if (value.type() == typeid(int)) |