From 67db9358e1fe8862184c425635e31e5767bc2f04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucca=20Jim=C3=A9nez=20K=C3=B6nings?= Date: Tue, 21 May 2024 11:50:46 +0200 Subject: [PATCH] Fix concepts related error (for compat with gcc9) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lucca Jiménez Könings --- include/TSettings.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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)" };