[Cs3] auto specifier

Mikhail Nesterenko mikhail at cs.kent.edu
Tue Sep 13 17:23:58 EDT 2016


CS3 students,

I checked auto specification. As of c++11 standard it is allowed only
for variables (so its type is determined by initializer) and functions
for so called trailing return type (to be discussed later). Therfore

    Myclass <auto> ob1;

is illegal.

Thanks,
-- 
Mikhail


More information about the cs3 mailing list