Is there a reason to have a ; after the } at the end of a function definition? Like
Code:class Foo
{
public:
void Bar();
};
Foo::Bar()
{
//some code
};
Printable View
Is there a reason to have a ; after the } at the end of a function definition? Like
Code:class Foo
{
public:
void Bar();
};
Foo::Bar()
{
//some code
};
Doesn't do anything (null statement) and not required. They are only required after class, struct, and union definitions.