diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-09-23 20:51:45 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-09-24 11:27:09 +0300 |
commit | fa002aac4c3cb75722d973d199a73231062b890c (patch) | |
tree | b09d44844bae7528d63689dfaf7e46d4b668733c /bpkg/database.cxx | |
parent | 3f86fb3b73731f680bcffda83e4dddb6914eb13a (diff) |
Make database ordering consistent across runs
Diffstat (limited to 'bpkg/database.cxx')
-rw-r--r-- | bpkg/database.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bpkg/database.cxx b/bpkg/database.cxx index 451ade3..aec3459 100644 --- a/bpkg/database.cxx +++ b/bpkg/database.cxx @@ -1074,4 +1074,12 @@ namespace bpkg { return *this == main_database (); } + + // compare_lazy_ptr + // + bool compare_lazy_ptr:: + less (const odb::database& x, const odb::database& y) const + { + return static_cast<const database&> (x) < static_cast<const database&> (y); + } } |