add dv::value support to binary_json

This commit is contained in:
MihailRis
2024-09-16 22:53:27 +03:00
parent 271db9a6f1
commit 27c8307562
4 changed files with 210 additions and 1 deletions
+3 -1
View File
@@ -220,7 +220,7 @@ namespace dv {
return setBytes(ptr);
}
value& operator=(const objects::Bytes& bytes);
inline value& operator=(const value& v) {
switch (v.type) {
case value_type::object:
@@ -308,6 +308,8 @@ namespace dv {
}
};
inline value none = value();
using reference = value&;
using const_reference = const value&;
}