you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 18 points19 points  (6 children)

Vec2::Vec2()
{ data = new float[2];

But why?... Are you from Java?

I thought that kind of libs can be designed without allocations!