summaryrefslogtreecommitdiff
path: root/lib/persistence.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-02-20 18:59:18 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-02-21 00:36:06 +0000
commiteeb3bceceacff5807011c83eeaa1f1497429b3ab (patch)
tree93a1697711c6c8114294da163b58bb975c84306e /lib/persistence.h
parentAdd SAXParse base class (diff)
downloadilt-eeb3bceceacff5807011c83eeaa1f1497429b3ab.tar.bz2
ilt-eeb3bceceacff5807011c83eeaa1f1497429b3ab.tar.xz
ilt-eeb3bceceacff5807011c83eeaa1f1497429b3ab.zip
Make sure an object is created before remembering it
Diffstat (limited to 'lib/persistence.h')
-rw-r--r--lib/persistence.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/persistence.h b/lib/persistence.h
index c311067..dbaee44 100644
--- a/lib/persistence.h
+++ b/lib/persistence.h
@@ -348,6 +348,7 @@ namespace Persistence {
}
if constexpr (shared) {
if (mbr == "p.id"sv) {
+ make_default_as_needed(this->v);
return this->template make_s<RememberObjectById>(this->v);
}
}