diff --git a/cpp/demo.cpp b/cpp/demo.cpp index 79f15e09d21d575b6b64bebe8bb9f961b016f8cc..6161edf2d95c1018d25e8a19e8e975c8528e9300 100644 --- a/cpp/demo.cpp +++ b/cpp/demo.cpp @@ -17,10 +17,9 @@ int main(void) { form.entityuuid = account.uuid; auto entity = v.EntityGetEntity(account, form); - for (auto e = entity.begin(); e != entity.end(); ++e) { - std::cout << "activated:" << (*e).created << std::endl; - for (auto& kv : (*e).claims) { - std::cout << kv.first << " " << (*e).claims[kv.first].tags["registration"].value["value"] << std::endl; + for (auto &e : entity) { + for (auto& kv : e.claims) { + std::cout << kv.first << " " << e.claims[kv.first].tags["registration"].value["value"] << std::endl; } } }