Skip to content

Commit

Permalink
Fix serialization of Box<json::value> with boost 1.87
Browse files Browse the repository at this point in the history
  • Loading branch information
bredelings committed Jan 1, 2025
1 parent 31261d7 commit e32db27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/builtins/Foreign.cc
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ extern "C" closure builtin_function_ejson_null(OperationArgs& Args)

extern "C" closure builtin_function_cjson_to_bytestring(OperationArgs& Args)
{
auto j = Args.evaluate(0).as_<Box<json::value>>();
// Serialize no long works with classes DERIVED from json::value.
json::value j = Args.evaluate(0).as_<Box<json::value>>();
String s = json::serialize(j,{.allow_infinity_and_nan=true});
return s;
}
Expand Down

0 comments on commit e32db27

Please sign in to comment.