The art of C++
123 views | +0 today
Follow
The art of C++
C++ at its finest.
Curated by Matthieu Bauny
Your new post is loading...
Your new post is loading...
Scooped by Matthieu Bauny
Scoop.it!

Reader Q&A: auto and for loop index variables

"So I’ve been reading all I can about c++11/c++14 and beyond when time permits.  I like auto, I really do, I believe in it.  I have a small problem I’m trying to decide what to do about [...]"

more...
No comment yet.
Scooped by Matthieu Bauny
Scoop.it!

Non-Static Data Member Initializers - Ranting @ 741 MHz

Non-static data member initialization is one of the new core language features introduced in C++11. It allows to provide an initial value for a field in class declaration.

more...
No comment yet.
Scooped by Matthieu Bauny
Scoop.it!

Why C++ Sails When the Vasa Sank, Scott Meyers

Why C++ Sails When the Vasa Sank, Scott Meyers | The art of C++ | Scoop.it
In this talk, Scott Meyers considers the lessons to be learned from the ongoing success of a complex programming language that's over 30 years old, yet very much alive and kicking.
more...
No comment yet.
Scooped by Matthieu Bauny
Scoop.it!

C++ String's length

C++ String's length | The art of C++ | Scoop.it
Let's start with a small test. Is the equivalence expressed with the following assertion correct? It is not; otherwise I wouldn't be mentioning this in the post; but do you know why it is wrong? If...
more...
No comment yet.
Scooped by Matthieu Bauny
Scoop.it!

An Effective C++11/14 Sampler - YouTube

"After years of intensive study (first of C++0x, then of C++11, and most recently of C++14), Scott thinks he finally has a clue."

more...
No comment yet.
Scooped by Matthieu Bauny
Scoop.it!

Quick Q: How can I make my constructor take a list of things, like map and vector?—StackOverflow : Standard C++

Quick Q: How can I make my constructor take a list of things, like map and vector?—StackOverflow : Standard C++ | The art of C++ | Scoop.it
more...
No comment yet.
Scooped by Matthieu Bauny
Scoop.it!

GotW #92 Solution: Auto Variables, Part 1

GotW #92 Solution: Auto Variables, Part 1 | The art of C++ | Scoop.it

"What does auto do on variable declarations, exactly? And how should we think about auto? In this GotW, we'll start taking a look at C++'s oldest new feature."

more...
No comment yet.
Scooped by Matthieu Bauny
Scoop.it!

Stroustrup: Why the 35-year-old C++ still dominates 'real' dev

Stroustrup: Why the 35-year-old C++ still dominates 'real' dev | The art of C++ | Scoop.it
C++ inventor details the language's latest changes and assesses the strengths and weaknesses of its competitors
more...
No comment yet.
Scooped by Matthieu Bauny
Scoop.it!

Quick Q: How do I write string literals that contain special characters?—StackOverflow : Standard C++

Quick Q: How do I write string literals that contain special characters?—StackOverflow : Standard C++ | The art of C++ | Scoop.it
more...
No comment yet.
Scooped by Matthieu Bauny
Scoop.it!

Is it possible in C++11 / 14 syntax to write an lambda function which will see parent variables?

Is it possible in C++11 / 14 syntax to write an lambda function which will see parent variables? | The art of C++ | Scoop.it
in abstraction:

int i = 1;
auto go = [] () {
return i;
};


Is it possible to make something like that in modern C++ syntax?
more...
No comment yet.
Scooped by Matthieu Bauny
Scoop.it!

C++ Rvalue References Explained

"Rvalue references are a feature of C++ that was added with the C++11 standard. [...] I will start with the problems that are to be solved and then show how rvalue references provide the solution."

more...
No comment yet.