From d8a3cd5dfb52c45be0349d59c84c2af122efe572 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 28 Jul 2017 01:44:18 -0500 Subject: [PATCH] Add operator< for DirectoryListing --- deps/ox/src/ox/fs/filesystem.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deps/ox/src/ox/fs/filesystem.hpp b/deps/ox/src/ox/fs/filesystem.hpp index dcaf41a4..48efcc15 100644 --- a/deps/ox/src/ox/fs/filesystem.hpp +++ b/deps/ox/src/ox/fs/filesystem.hpp @@ -42,6 +42,11 @@ struct DirectoryListing { } }; +template +bool operator<(const DirectoryListing &a, const DirectoryListing &b) { + return a.name < b.name; +} + template struct __attribute__((packed)) DirectoryEntry { InodeId_t inode;