diff --git a/include/TSettings.h b/include/TSettings.h index e8c0e36..b9c74c4 100644 --- a/include/TSettings.h +++ b/include/TSettings.h @@ -193,8 +193,9 @@ struct Settings { } map->at(key) = value; } - template T> - void set(Key key, T value) { + + template, bool> = true> + void set(Key key, Integer value) { auto map = SettingsMap.synchronize(); if (!map->contains(key)) { throw std::logic_error { "Undefined setting key accessed in Settings::set(int)" }; @@ -204,8 +205,8 @@ struct Settings { } map->at(key) = value; } - template T> - void set(Key key, T value) { + template, bool> = true> + void set(Key key, Boolean value) { auto map = SettingsMap.synchronize(); if (!map->contains(key)) { throw std::logic_error { "Undefined setting key accessed in Settings::set(bool)" };