Using OptionalBool, add RecordHistoryOptional col into IrcChannelOptions table

ref #3269
This commit is contained in:
louiz’
2017-06-16 09:54:36 +02:00
parent 4a963cc480
commit 40db183e37
8 changed files with 68 additions and 3 deletions
+25
View File
@@ -0,0 +1,25 @@
#pragma once
#include <string>
struct OptionalBool
{
OptionalBool() = default;
OptionalBool(bool value):
is_set(true), value(value) {}
void set_value(bool value)
{
this->is_set = true;
this->value = value;
}
void unset()
{
this->is_set = false;
}
bool is_set{false};
bool value{false};
};