more standard features for filesystem

This commit is contained in:
qPCR4vir
2016-02-19 13:52:15 +01:00
parent d8a06989f3
commit 9f430f7220
2 changed files with 43 additions and 35 deletions

View File

@@ -384,7 +384,7 @@ namespace nana { namespace experimental { namespace filesystem
}
};
directory_iterator::directory_iterator()
directory_iterator::directory_iterator() noexcept
: end_(true),
handle_(nullptr)
{}
@@ -414,14 +414,10 @@ namespace nana { namespace experimental { namespace filesystem
bool directory_iterator::equal(const directory_iterator& x) const
{
if (end_ && (end_ == x.end_)) return true;
return (value_.path().filename() == x.value_.path().filename());
return (value_.path().filename() == x.value_.path().filename());
}
// enable directory_iterator range-based for statements
directory_iterator directory_iterator::begin() { return *this; }
directory_iterator directory_iterator::end() { return{}; }
void directory_iterator::_m_prepare(const path& file_path)
{
path_ = file_path.native();