Skip to content

Commit 42f6d1e

Browse files
committed
ensure alignof has a complete type of fs::Dirent
1 parent 011a544 commit 42f6d1e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

api/fs/common.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,6 @@ namespace fs {
205205
{
206206
error_t error;
207207
Dirvec_ptr entries;
208-
auto begin() { return entries->begin(); }
209-
auto end() { return entries->end(); }
210-
auto cbegin() const { return entries->cbegin(); }
211-
auto cend() const { return entries->cend(); }
212208
};
213209

214210
} //< fs

api/fs/dirent.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,5 +194,11 @@ namespace fs {
194194

195195
} //< namespace fs
196196

197+
namespace fs {
198+
inline auto begin(List& l) { return l.entries->begin(); }
199+
inline auto end(List& l) { return l.entries->end(); }
200+
inline auto cbegin(const List& l) { return l.entries->cbegin(); }
201+
inline auto cend(const List& l) { return l.entries->cend(); }
202+
} //< namespace fs
197203

198204
#endif //< FS_DIRENT_HPP

0 commit comments

Comments
 (0)