0
0
Fork 0
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:
Jason Volk 2019-06-07 22:25:16 -07:00
parent 87e8b5eb1f
commit 947fd1f4b4

View file

@ -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;