Add operator< for DirectoryListing

This commit is contained in:
Gary Talent 2017-07-28 01:44:18 -05:00
parent afe2148a17
commit d8a3cd5dfb

View File

@ -42,6 +42,11 @@ struct DirectoryListing {
} }
}; };
template<typename String>
bool operator<(const DirectoryListing<String> &a, const DirectoryListing<String> &b) {
return a.name < b.name;
}
template<typename InodeId_t> template<typename InodeId_t>
struct __attribute__((packed)) DirectoryEntry { struct __attribute__((packed)) DirectoryEntry {
InodeId_t inode; InodeId_t inode;