Is there any way to unpack:
into a std:vector<int> ?
I can't find any mention, and std::vector<int> v = j["my_list"]; fails, as does j["my_list"].get<std::vector<int>>()
(Crosslinked to https://stackoverflow.com/questions/54389742/use-nlohmann-json-to-unpack-list-of-integers-to-a-stdvectorint)
Is there any way to unpack:
into a
std:vector<int>?I can't find any mention, and
std::vector<int> v = j["my_list"];fails, as doesj["my_list"].get<std::vector<int>>()(Crosslinked to https://stackoverflow.com/questions/54389742/use-nlohmann-json-to-unpack-list-of-integers-to-a-stdvectorint)