From ce5c689a5f9e544d724b2a41fda2f752ccc4a4ae Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 7 May 2021 20:50:48 +0100 Subject: Initial commit where writing objects back out to JSON It's not perfect, writes explicit nulls, doesn't do shared @id --- lib/persistence.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/persistence.cpp') diff --git a/lib/persistence.cpp b/lib/persistence.cpp index c4ee142..4f1be8f 100644 --- a/lib/persistence.cpp +++ b/lib/persistence.cpp @@ -78,5 +78,11 @@ namespace Persistence { Selection::endObject(Stack &) { } + + void + Selection::write(const Writer &) const + { + throw std::logic_error("Default write op shouldn't ever get called"); + } /// LCOV_EXCL_STOP } -- cgit v1.2.3