Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-07-19 07:52:18


"Andy Little" <andy_at_[hidden]> writes:

> "Andy Little" <andy_at_[hidden]> wrote
>>
>> "David Abrahams" <dave_at_[hidden]> wrote
>>> "Andy Little" <andy_at_[hidden]> writes:
>>
>>>> FWIW This compiles fine in VC7.1 . AFAIK there is no C++ rule
>>>> banning an empty statement in any scope( including namespace scope)
>>>> where a statement is otherwise allowed.
>>>
>>> But that's just it: statements aren't allowed at namespace scope.
>>
>> Thats not correct. A declaration-statement is a statement.
>>
>> However I assume what you are trying to say is ; if statements allowed at
>> namespace scope cannot be empty then by deduction semicolons representing
>> empty
>> statements are not permitted at namespace scope.
>
> Oops sorry for trying to put words in someone elses mouth.

I didn't mind. I don't know what I was trying to say. I obviously
don't remember how the grammar works; I thought statements
strictly appeared at function scope.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk