|
Boost : |
From: Katrin Östman (kaos_at_[hidden])
Date: 2000-09-21 03:25:53
Hi!
I got a run-time error during use the
template <> boost::filesystem::get<user_execute>::operator
user_execute::value_type() const
{
std::string name(*m_it);
--> std::string ext(name.substr(name.find_last_of('.')));
return ext == ".exe" || ext == ".bat";
}
(file: boost/libs/dir_it/directory.cpp).
Is it not better to change the marked line to:
std::string::size_type dotpos = name.find_last_of('.');
if( dotpos == std::string::npos )
return false;
?
Vitalij.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk