48 auto v =
aron->VERSION;
50 std::to_string(v.MAJOR) +
"." + std::to_string(v.MINOR) +
"." + std::to_string(v.PATCH);
52 auto d = aron::Version();
54 std::to_string(d.MAJOR) +
"." + std::to_string(d.MINOR) +
"." + std::to_string(d.PATCH);
59 <<
"Found inconsistencies in aron versions. This may lead to ice marshalling "
60 "exceptions. Please make sure to update the sender and receiver packages. "
61 << v_str <<
" != " << d_str;
68 return std::make_unique<data::List>(data::dto::ListPtr::dynamicCast(
aron), path);
70 return std::make_unique<data::Dict>(data::dto::DictPtr::dynamicCast(
aron), path);
72 return std::make_unique<data::NDArray>(data::dto::NDArrayPtr::dynamicCast(
aron),
75 return std::make_unique<data::Int>(data::dto::AronIntPtr::dynamicCast(
aron), path);
77 return std::make_unique<data::Long>(data::dto::AronLongPtr::dynamicCast(
aron),
80 return std::make_unique<data::Float>(data::dto::AronFloatPtr::dynamicCast(
aron),
83 return std::make_unique<data::Double>(data::dto::AronDoublePtr::dynamicCast(
aron),
86 return std::make_unique<data::String>(data::dto::AronStringPtr::dynamicCast(
aron),
89 return std::make_unique<data::Bool>(data::dto::AronBoolPtr::dynamicCast(
aron),
95 __PRETTY_FUNCTION__,
"", std::to_string((
int)descriptor), path);