c++ - boost string type mismatch -
in followring code,
class monitorresult { public: void putdir(std::string && dir) { } }; void listdir(boost::filesystem::path && dir, monitorresult & result) { for(boost::filesystem::directory_iterator it(dir); != boost::filesystem::directory_iterator(); ++it) { if(boost::filesystem::is_symlink( it->path()) ) { continue; } else if(boost::filesystem::is_directory(it->path())) { result.putdir(it->path().string() ); // error here } } } error: no matching function call
monitorresult::putdir(const string&)candidatevoid monitorresult::putdir(std::string&&)
i not getting std::string, string. how can type error resolved? thanks.
Comments
Post a Comment