From bfea0319aa07ad2c921ba29ba216e921d65f2ed1 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 9 Jan 2024 00:23:16 +0000 Subject: Integer support in persistence Splits bool and arithmatic types, pass arithmatic values as string views from JSON and parse according to the target type. --- lib/persistence.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/persistence.cpp') diff --git a/lib/persistence.cpp b/lib/persistence.cpp index 38e2ac6..f6f0c17 100644 --- a/lib/persistence.cpp +++ b/lib/persistence.cpp @@ -103,9 +103,9 @@ namespace Persistence { } void - Selection::setValue(float) + Selection::setValue(std::string_view) { - throw std::runtime_error("Unexpected float"); + throw std::runtime_error("Unexpected numeric"); } void -- cgit v1.2.3