Re[3]: auto in argument list
От: byleas  
Дата: 12.07.09 14:01
Оценка:
Здравствуйте, D14, Вы писали:

D14>Здравствуйте, byleas, Вы писали:


B>>Ну может, в каком-нить C++2x.. Ибо тип auto выводится при инициализации, а параметры не инициализируются в compile-time. Это же не boost::any.

D14>При инициализации это как?
N2800:

7.1.6.4/1
The auto type-specifier signifies that the type of an object being declared shall be deduced from its initializer or specified explicitly at the end of a function declarator.

7.1.6.4/3
… The decl-specifier-seq shall be followed by one or more init-declarators, each of which shall have a non-empty initializer of either of the following forms:
= assignment-expression
( assignment-expression )

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