Re:Elements of Modern C++ Style
by koenigdavidmj on Saturday October 29, 2011 @04:45PM
(#3172757)
>And how would you even write this snippet, pre auto?!
[ Parent
| on HN ]
That's cheating! I meant how would you write it pre-C++11 extensions (and also not using the earlier GCC typeof extension). decltype is just a slightly different form of auto. :)
Re:Elements of Modern C++ Style
by koenigdavidmj on Saturday October 29, 2011 @04:50PM
(#3172772)
That should be decltype, not typeof, btw