TheNitesWhoSay / RareCpp

Creating a simpler, more intuitive means of C++ reflection
MIT License
124 stars 6 forks source link

Fix Pointer Const Correctness #65

Closed TheNitesWhoSay closed 4 years ago

TheNitesWhoSay commented 4 years ago

ExtendedTypeSupport::remove_pointer isn't getting the dereferenced constness correct, this may result in JSON input to such values getting ignored, fix this https://godbolt.org/z/oYY347

Also ensure that auto allocation for const shared&unique pointers is attempted in the appropriate const cases only.

TheNitesWhoSay commented 4 years ago

67