diff options
Diffstat (limited to 'bpkg/types.hxx')
-rw-r--r-- | bpkg/types.hxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bpkg/types.hxx b/bpkg/types.hxx index d8ffa79..8f6d9df 100644 --- a/bpkg/types.hxx +++ b/bpkg/types.hxx @@ -180,9 +180,15 @@ namespace bpkg // return x.object_id () != y.object_id () ? (x.object_id () < y.object_id ()) - : (&static_cast<typename P::base_type> (x).database () < - &static_cast<typename P::base_type> (y).database ()); + : less (static_cast<typename P::base_type> (x).database (), + static_cast<typename P::base_type> (y).database ()); } + + private: + // Defined in database.cxx. + // + bool + less (const odb::database&, const odb::database&) const; }; // Compare two lazy pointers via the pointed-to object ids. |