summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-08-23 20:30:11 +0200
committerlouiz’ <louiz@louiz.org>2018-08-23 20:30:11 +0200
commit0b51e3828116f6847865fae93893eb97a10d1cc2 (patch)
tree39abd4550930b6c5d0fc99fa75ddab0724970371 /src/utils
parent4a583c7b7ea6046202a4cb7c0437241c8f597356 (diff)
downloadbiboumi-0b51e3828116f6847865fae93893eb97a10d1cc2.tar.gz
biboumi-0b51e3828116f6847865fae93893eb97a10d1cc2.tar.bz2
biboumi-0b51e3828116f6847865fae93893eb97a10d1cc2.tar.xz
biboumi-0b51e3828116f6847865fae93893eb97a10d1cc2.zip
MaxHistoryLength now has some sensible default value if the user set a negative one
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/optional_bool.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/optional_bool.hpp b/src/utils/optional_bool.hpp
index 867aca2..3d00d23 100644
--- a/src/utils/optional_bool.hpp
+++ b/src/utils/optional_bool.hpp
@@ -6,7 +6,7 @@ struct OptionalBool
{
OptionalBool() = default;
- OptionalBool(bool value):
+ explicit OptionalBool(bool value):
is_set(true), value(value) {}
void set_value(bool value)