mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
add dv::value support to binary_json
This commit is contained in:
parent
271db9a6f1
commit
27c8307562
4 changed files with 210 additions and 1 deletions
|
|
@ -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&;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue