[Solved] Wrap matrix multiplication with operator* overload

So, I was trying to wrap a glm::mat4::operator*(…) which didn’t exist. Here is the prototype: GLM_FUNC_DECL mat<4, 4, T, Q> operator*(mat<4, 4, T, Q> const& m, T const& s); which takes two mat4 arguments and returns a mat4. So the solution looked something like this: struct custom_deleter { glm::mat4 operator()(glm::mat4* m) { return *m; } … Read more