mirror of
https://github.com/matrix-construct/construct
synced 2025-01-13 08:23:56 +01:00
ircd::conf: Add explicit bang operator on bool conf item specialization.
This commit is contained in:
parent
87e8b5eb1f
commit
947fd1f4b4
1 changed files with 5 additions and 0 deletions
|
@ -185,6 +185,11 @@ struct ircd::conf::item<bool>
|
|||
:conf::item<>
|
||||
,conf::value<bool>
|
||||
{
|
||||
bool operator!() const
|
||||
{
|
||||
return !static_cast<const bool &>(*this);
|
||||
}
|
||||
|
||||
string_view on_get(const mutable_buffer &out) const override;
|
||||
bool on_set(const string_view &s) override;
|
||||
size_t size() const override;
|
||||
|
|
Loading…
Reference in a new issue