Closed furudbat closed 8 months ago
Maybe making the Load()
method using r-value ref, can prevent some mishap.
void Load(const ::Mesh& mesh) = delete;
void Load(::Mesh&& mesh) { ... }
void Load(const raylib::Mesh& mesh) = delete;
void Load(raylib::Mesh&& mesh) { ... }
I'm still not 100% happy with the solution, you can still mess up the construction via implicit cast.