Trailing semicolon at the end of namespaces

Hi Peter,

I’ve just noticed (haven’t paid attention to it before) that we have an extra semicolon at the end of all namespaces but there should be no semicolon (according to the C++ standard). Because we don’t compile according to the standard (i.e. -std=c++98 -pedantic with gcc) there is no problem with that (compilers ignore it).

I’m just asking if you are aware of it or it’s there since the project beginning. There is no “big” problem with that now, but I’m just curious. Maybe you could note that into your TODO list and correct it in the next main branch merge (if there is no reason keeping it) - it’s also in our coding conventions.

Have a nice day, Petr

Would you like to post a relpy?


This post starts a thread.
Follow-ups:
Re: Trailing semicolon at the end of namespaces
Hi Petr, Yes you are right, I didn't know that! We'd better be standard conformant and remove the semicolons! I actually used to think that namespaces need a semicolon just like (more...)