From d8a06989f34d48afb990654e499b47e67e687846 Mon Sep 17 00:00:00 2001 From: qPCR4vir Date: Thu, 18 Feb 2016 16:00:17 +0100 Subject: [PATCH] working on directory_only_iterator --- include/nana/filesystem/filesystem_ext.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nana/filesystem/filesystem_ext.hpp b/include/nana/filesystem/filesystem_ext.hpp index 35aeec7c..90b9978d 100644 --- a/include/nana/filesystem/filesystem_ext.hpp +++ b/include/nana/filesystem/filesystem_ext.hpp @@ -39,7 +39,7 @@ class directory_only_iterator : public DI { DI& find_first() { - while(( (*this) != DI{}) || !is_directory((*this)) ) + while(( (*this) != DI{}) || !is_directory((*this)->status()) ) this->DI::operator++(); return (*this); } @@ -61,7 +61,7 @@ class regular_file_only_iterator : public DI { DI& find_first() { - while(( (*this) != DI{}) || !is_regular_file(*this) ) + while(( (*this) != DI{}) || !is_regular_file((*this)->status()) ) this->DI::operator++(); return (*this); }