rttrorg / rttr

C++ Reflection Library
https://www.rttr.org
MIT License
3.2k stars 443 forks source link

"error: ‘void* memcpy" when build with gcc 9.3.0 on Ubuntu 9.3.0-17ubuntu1~20.04 #333

Open JrPhy opened 2 years ago

JrPhy commented 2 years ago

image I'm using rttr with my project now, and I encounter this issue when I build. I found someone met similar issues, and I uses similar methods to solve it. in /rttr/3rd_party/rapidjson-1.1.0/rapidjson/document.h line 1953 modified --> std::memcpy(static_cast<void*>(e), values, count * sizeof(GenericValue)); line 1966 modified --> std::memcpy(static_cast<void*>(m), members, count * sizeof(Member)); then I build it successfully.