Issue with ordered_json #2361
amirmasoudabdol
started this conversation in
General
Replies: 1 comment
-
|
OK, I've tracked this done. I still don't know the reason behind this, but without using @nlohmann I'm not sure if this is intended, or whether I've done this incorrectly from the first place, but maybe you like to look into this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to replace my
jsonobject with theordered_jsonbut some of myto/from_jsonserializer are not working properly anymore.So, I have these set of methods to read and write a vector to
arma::Row<T>(which is a representation of a vector in Armadillo library).This works fine if I invoke it like this,
auto means = j.at("means").get<arma::Row<double>>();but when I switch toordered_jsonI get an error saying: "No member named 'insert' inarma::Mat<double>". If it matters, I actually use this line,auto means = j.at("means").get<arma::Row<double>>();inside anadl_serializerfor another object, like below, and btw the same happens when I want to get thearma::Mat<double>>.I'm not exactly sure why this is failing, and how I can fix it.
Beta Was this translation helpful? Give feedback.
All reactions