mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-13 17:05:37 -04:00
File: Clean up directory_iterator construction, preserve pattern.
FatFs requires pattern pointer to be stable during search.
This commit is contained in:
parent
2740761ed7
commit
79330015ed
2 changed files with 9 additions and 7 deletions
|
@ -97,6 +97,7 @@ class directory_iterator {
|
|||
};
|
||||
|
||||
std::shared_ptr<Impl> impl;
|
||||
const path pattern;
|
||||
|
||||
friend bool operator!=(const directory_iterator& lhs, const directory_iterator& rhs);
|
||||
|
||||
|
@ -108,8 +109,8 @@ public:
|
|||
using iterator_category = std::input_iterator_tag;
|
||||
|
||||
directory_iterator() noexcept { };
|
||||
directory_iterator(const std::filesystem::path::value_type* path, const std::filesystem::path::value_type* wild);
|
||||
|
||||
directory_iterator(std::filesystem::path path, std::filesystem::path wild);
|
||||
|
||||
~directory_iterator() { }
|
||||
|
||||
directory_iterator& operator++();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue