The Subtle Dangers of Temporaries in for Loops--Jonathan Boccara

You've been warned.

The Subtle Dangers of Temporaries in for Loops

by Jonathan Boccara

From the article:

Even though very convenient to write concise code, temporaries are an endless source of bugs in C++.

Are we allowed to use a temporary in a range based for loop?

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.