C++ 11 auto keyword

Like Hungarian Notation, spaces versus coma indentation, open curly brace position, etc… the usage of the C++ 11 auto keyword, or lack thereof, has a flavor of religious meme.

If you’re in the camp that never uses it, or just with lambdas, or never for built-in types (int, bool, char *, …), can I invite you to follow the related segment of Herb’s excellent Back to the Basics! Essentials of Modern C++ Style talk?

If you’re not yet convinced, acquire or rent the Effective C++ book from Scott Meyers and make sure to read Item 5.

They both make excellent points that show the real values of using auto to declare your variable.Both the video and the book have been available for more than a year and a half now.

I’m telling you, that meme is as strong as the religious one!

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s