fixup compiler errors & finalize json (de-)serialization for values

Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
Folling 2023-12-09 14:02:05 +01:00 committed by Folling
parent a934564afc
commit 785e43d9e6
Signed by: folling
SSH key fingerprint: SHA256:S9qEx5WCFFLK49tE/LKnKuJYM5sw+++Dn6qJbbyxnCY
13 changed files with 116 additions and 58 deletions

View file

@ -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) {