diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-05-07 20:50:48 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-11-07 16:41:37 +0000 |
commit | ce5c689a5f9e544d724b2a41fda2f752ccc4a4ae (patch) | |
tree | 33f2c53d2cb1b67f3c7024bbec2366be875b57d9 /lib/persistence.cpp | |
parent | Fixup clang, cppcheck and iwyu warnings (diff) | |
download | ilt-ce5c689a5f9e544d724b2a41fda2f752ccc4a4ae.tar.bz2 ilt-ce5c689a5f9e544d724b2a41fda2f752ccc4a4ae.tar.xz ilt-ce5c689a5f9e544d724b2a41fda2f752ccc4a4ae.zip |
Initial commit where writing objects back out to JSON
It's not perfect, writes explicit nulls, doesn't do shared @id
Diffstat (limited to 'lib/persistence.cpp')
-rw-r--r-- | lib/persistence.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 } |