In C++ classes, why the semi-colon after the closing brace? I regularly forget it and get compiler errors, and hence lost time. Seems somewhat superfluous to me, which is un
I guess it's because classes are declarations, even when they need braces for grouping. And yes, there's the historical argument that since in C you could do
struct
{
float x;
float y;
} point;
you should in C++ be able to do a similar thing, it makes sense for the class
declaration to behave in the same way.