r/cpp_review - a C++ Library Review Community
A short video on r/cpp_review
A C++ Library Review Community
by Jens Weller
September 13-19, Aurora, CO, USA
October 25, Pavia, Italy
November 6-8, Berlin, Germany
November 3-8, Kona, HI, USA
By Meeting C++ | Aug 15, 2017 02:51 AM | Tags: intermediate community c++14 c++11 basics advanced
A short video on r/cpp_review
A C++ Library Review Community
by Jens Weller
By Adrien Hamelin | Aug 14, 2017 02:48 PM | Tags: c++17 basics
C++17 is almost there.
7 Features of C++17 that will simplify your code
by fenbf
From the article:
With each C++ standard, we aim for simpler, cleaner and more expressive way to code. C++17 offers several "big" language features that should make our code nicer. Today, I tried to pick seven things that make your code more compact right off the bat.
By Adrien Hamelin | Aug 10, 2017 01:12 PM | Tags: c++17 basics
C++17 brought many things:
C++17: Direct vs Copy List Initialization
by Marc Gregoire
From the article:
The auto type deduction rules have changes in C++17. With C++17, if you use copy list initialization, then an initializer_list<> is deduced.
By Meeting C++ | Aug 10, 2017 08:12 AM | Tags: performance intermediate efficiency community codereview c++14 c++11 basics
Participate in the first two reviews at r/cpp_review:
The reviews have begun
by Jens Weller
From the article
A few weeks ago I announced a C++ review community, which since then has grown to 250+ members on reddit. There has been great feedback and discussions since then, so that the idea is now ready to be tested. With August, the first review period has started
By Jason Turner | Aug 7, 2017 01:11 PM | Tags: performance efficiency c++11 basics
Episode 75 of C++ Weekly.
Why You Cannot Move From Const
by Jason Turner
About the show:
You may have noticed that it's possible to use std::move with a const object, but have you stopped to consider what it does? What you think is a move is silently reverting to a copy without your knowing. In this episode Jason explains what is happening and why.
By Adrien Hamelin | Aug 2, 2017 01:55 PM | Tags: c++17 basics
Another new feature.
C++17: Nested Namespaces
by Marc Gregoire
From the article:
The second post in this series of C++17 features highlights a tiny but very useful new feature called nested namespaces.
By Adrien Hamelin | Jul 31, 2017 12:32 PM | Tags: c++17 basics
It is coming!
C++17: Structured Bindings
by Marc Gregoire
From the article:
This is a first post in a series of short articles on new C++17 features. These articles will not contain all little details of the new features being presented, but they give you an idea about what new functionality has been added to C++17.
By Adrien Hamelin | Jul 12, 2017 12:10 PM | Tags: community basics
Yes there is one.
The real difference between struct and class
by Jonathan Boccara
From the article:
“Should I use a struct or a class?”
Such is the question many C++ programmers ask themselves, or ask around to more experienced co-workers, when designing their code.
By Adrien Hamelin | Jul 10, 2017 12:08 PM | Tags: c++11 basics
Quick A: It calls the initializer_list
constructor that has the same effect in this case.
Recnetly on SO:
Initializing a C++11 string with {}
The
{}
initialization syntax is known as the uniform initialization syntax, it has a few key differences, but in your code as is they both do the same thing - construct astd::string
object from the string literal "Test"Initializing an object with an assignment is essentially the same as putting the right hand side in parentheses and constructing the object. For example the below two are the same
T obj = a; T obj(a);So you should be asking yourself, what is the difference between constructing a string object the following two ways
std::string{"Test"}; std::string("Test");And the answer is that both the constructions above are the same and call the same constructor for
std::string
For more on uniform initialization see https://softwareengineering.stackexchange.com/questions/133688/is-c11-uniform-initialization-a-replacement-for-the-old-style-syntax
By Adrien Hamelin | Jul 7, 2017 01:59 PM | Tags: c++11 basics
And how they are used by the std:
Functors in C++
by Mayank Jain
From the article:
Functor or function object is a C++ class which defines the operator ( ). Functor let’s you create objects which “looks like” functions...