fixup compiler errors & finalize json (de-)serialization for values
Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
parent
a934564afc
commit
785e43d9e6
13 changed files with 116 additions and 58 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#include "ikarus/values/text_value.h"
|
||||
|
||||
#include <boost/bind/bind.hpp>
|
||||
#include <boost/functional/overloaded_function.hpp>
|
||||
|
||||
#include <values/text_value.hpp>
|
||||
|
|
@ -45,12 +46,7 @@ void ikarus_text_value_set_undefined(IkarusTextValue * value, bool undefined) {
|
|||
}
|
||||
|
||||
char const * ikarus_text_value_to_string(IkarusTextValue const * value) {
|
||||
return boost::variant2::visit(
|
||||
boost::make_overloaded_function(
|
||||
[](boost::variant2::monostate const&) { return nullptr; }, [](auto const& data) { return fmt::join(data, ", "); }
|
||||
),
|
||||
value->data
|
||||
);
|
||||
return ikarus_value_base_to_string(value, [](auto const& value) { return value; });
|
||||
}
|
||||
|
||||
bool ikarus_text_value_is_equal(IkarusTextValue const * lhs, IkarusTextValue const * rhs) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue