more standard features for filesystem
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user