A fresh Scott Meyers post about a brand-new C++14 feature:
When decltype meets auto
by Scott Meyers
... C++14 is on the horizon, and one of the new features sure to stifle even the strongest of yawns is the ability to declare types using
decltype(auto). This feature leads to two questions, only the first of which is rhetorical:
- You can declare what?
- During type deduction for
decltype(auto), which type deduction rules are to be followed: those forautoor those fordecltype? Or doesdecltype(auto)have its own set of type deduction rules?

Add a Comment
Comments are closed.