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
-
I'm trying to replace my
json
object with theordered_json
but some of myto/from_json
serializer 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_json
I 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_serializer
for 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