Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualAndreas Jonsson

Posted 28 February 2014 - 08:54 PM

The assert failure is triggered by the fact that you've registered your opAssign method to return the object by value. 


The opAssign method should return the object by reference, i.e. "Vec2f &opAssign(const Vec2f &in)".




Still, there is a bug in the library since it should have recognized this error and reported it to you instead of entering the code path that triggered the assert failure. I'll work on fixing this.

#1Andreas Jonsson

Posted 28 February 2014 - 08:09 PM

That was it. I didn't think to try this with a value type without the asOBJ_POD flag yesterday. 


I've reproduced the problem now, but it's too late to look into it any further at the moment. I'll see if I can have it fixed tomorrow.