jsoysouvanh / Refureku

Cross-platform C++17 Runtime Reflection Library
https://jsoysouvanh.github.io/Refureku/
MIT License
218 stars 21 forks source link

[Fix] rfk::Object had copy and move constructors, but no copy and mov… #2

Closed ThomasProg closed 3 years ago

ThomasProg commented 3 years ago

rfk::Object had copy and move constructors, but no copy and move assignements. In other words, children of rfk::Object could not be moved or copied by assignement.

Currently, the following code does not compile if MyObject inherits rfk::Object.

MyObject o;
MyObject b;
b = std::move(o)

This merge fixes it.