Indiana Unversity logo[ConceptGCC]

ConceptGCC :

Re: Concepts in std::string; default implementations

From: Martin Sebor (sebor_at_[hidden])
Date: 2007-04-09 13:10:15


Douglas Gregor wrote:
[...]
>> 3) Is the ';' needed after concept or concept_map? AFAIK no, but in all
>> examples in the tutorial it's there.
>
> The ';' is optional after a concept or concept_map.

Out of curiosity, is it optional because gcc allows it or is it
in the grammar that way? (AFAIK, the current grammar doesn't allow
stray semicolons at namespace scope, e.g., after the closing brace
of a namespace block, and there are compilers out there that give
errors for violations).

Martin