fixup compiler errors & finalize json (de-)serialization for values
Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
parent
7f24d3d064
commit
e22bfba991
13 changed files with 116 additions and 58 deletions
|
|
@ -8,7 +8,7 @@
|
|||
struct IkarusValue {
|
||||
public:
|
||||
using Data = boost::variant2::variant<struct IkarusToggleValue *, struct IkarusNumberValue *, struct IkarusTextValue *>;
|
||||
constexpr auto SMALL_VEC_VALUE_SIZE = 8;
|
||||
constexpr static auto SMALL_VEC_VALUE_SIZE = 8;
|
||||
|
||||
public:
|
||||
explicit IkarusValue(Data data);
|
||||
|
|
@ -24,7 +24,7 @@ public:
|
|||
public:
|
||||
struct FromJsonError {};
|
||||
|
||||
[[nodiscard]] static cppbase::Result<IkarusValue, FromJsonError> from_json(boost::json::value const& json);
|
||||
[[nodiscard]] static cppbase::Result<IkarusValue *, FromJsonError> from_json(boost::json::value const& json);
|
||||
[[nodiscard]] boost::json::value to_json() const;
|
||||
|
||||
public:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue