From abd7f486a0fb34320e3afae6780677cfd4ff85cc Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 25 Apr 2021 19:19:28 +0100 Subject: Erring toward complete JSON loader --- lib/persistance.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'lib/persistance.cpp') diff --git a/lib/persistance.cpp b/lib/persistance.cpp index 7539b44..bdcbe9f 100644 --- a/lib/persistance.cpp +++ b/lib/persistance.cpp @@ -47,8 +47,8 @@ namespace Persistanace { throw std::runtime_error("Unexpected array"); } - SelectionPtr - Selection::BeginObject() + void + Selection::BeginObject(Stack &) { throw std::runtime_error("Unexpected object"); } @@ -62,7 +62,12 @@ namespace Persistanace { SelectionPtr Selection::select(const std::string &) { - throw std::runtime_error("Unexpected persist"); + throw std::runtime_error("Unexpected select"); + } + + void + Selection::EndObject(Stack &) + { } static_assert(!SelectionT::ArrayLike); -- cgit v1.2.3