Re: Вопрос про name-specifier
От: Ytz https://github.com/mtrempoltsev
Дата: 28.03.11 16:17
Оценка:
Похоже на глюк, прокатывает и такое:

void A::A::A::A::A::A::A::A::A::foo()
{
}


А вот MS VS 2010 ругается:

c:\work\test\test\main.cpp(46): error C3083: '{ctor}': the symbol to the left of a '::' must be a type
c:\work\test\test\main.cpp(47): error C2533: 'A::foo' : constructors not allowed a return type

 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.