I'm trying to copy a rapidjson::value into a class member.
error: ‘rapidjson::GenericValue<Encoding, <template-parameter-1-2> >::GenericValue(const rapidjson::GenericValue<Encoding, <template-parameter-1-2> >&) [with Encoding = rapidjson::UTF8<char>; Allocator = rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>]’ is private
simply for execution the folowing line:
void setData(const rapidjson::Value json) {
this->json = json;
}
Any idea how I can simply copy a rapidjson object into a class member, so it can be parsed later?