aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorLexi Winter <lexi@hemlock.eden.le-fay.org>2025-03-26 15:39:07 +0000
committerLexi Winter <lexi@hemlock.eden.le-fay.org>2025-03-26 15:39:07 +0000
commit63ae632ca5471dd43873d61eccf553e1e1a0e546 (patch)
tree1b85d4249b35df0812937b1bdad3a2a0ca91b0d8 /README
parente3f8075b7ff82215d92c495d015526eb56b124a7 (diff)
downloadlibnvxx-63ae632ca5471dd43873d61eccf553e1e1a0e546.tar.gz
libnvxx-63ae632ca5471dd43873d61eccf553e1e1a0e546.tar.bz2
nv_deserialize() should take the target object by reference
this avoids the need to write the type name when calling it, and makes it easier to deserialize into an existing object.
Diffstat (limited to 'README')
-rw-r--r--README4
1 files changed, 3 insertions, 1 deletions
diff --git a/README b/README
index ca208b1..9ca353c 100644
--- a/README
+++ b/README
@@ -60,7 +60,9 @@ serialization interface:
object obj{};
nv_list nvl = bsd::nv_serialize(obj);
- object obj2 = bsd::nv_deserialize<object>(nvl);
+
+ object obj2{};
+ bsd::nv_deserialize(nvl, obj);
infrequently asked questions: