mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd::db: Deinline database::comparator ctor.
This commit is contained in:
parent
fec935463b
commit
895c52694e
2 changed files with 11 additions and 4 deletions
|
@ -29,8 +29,5 @@ struct ircd::db::database::comparator final
|
|||
bool Equal(const Slice &a, const Slice &b) const noexcept override;
|
||||
const char *Name() const noexcept override;
|
||||
|
||||
comparator(database *const &d, db::comparator user)
|
||||
:d{d}
|
||||
,user{std::move(user)}
|
||||
{}
|
||||
comparator(database *const &d, db::comparator user);
|
||||
};
|
||||
|
|
10
ircd/db.cc
10
ircd/db.cc
|
@ -1259,6 +1259,16 @@ catch(const std::out_of_range &e)
|
|||
// database::comparator
|
||||
//
|
||||
|
||||
ircd::db::database::comparator::comparator(database *const &d,
|
||||
db::comparator user)
|
||||
:d{d}
|
||||
,user
|
||||
{
|
||||
std::move(user)
|
||||
}
|
||||
{
|
||||
}
|
||||
|
||||
const char *
|
||||
ircd::db::database::comparator::Name()
|
||||
const noexcept
|
||||
|
|
Loading…
Reference in a new issue