Smelly std::pair and std::tuple
Depending on their use, std::pair and std::tuple can be code smells. That’s why we should be careful around these two.
Depending on their use, std::pair and std::tuple can be code smells. That’s why we should be careful around these two.
Last year, I have written about constexpr and compile time constants in general. Last week, the Draft International Standard for C++17 has been sent to its ballot. Time to provide […]
This week I exchange guest posts with Jonathan Müller about accessing tuple elements. Jonathan is a CS student passionate about C++. He’s working on various C++ projects like memory, an […]
Lambdas are a nice recent addition to C++. They are cool, they are hip, and they tend to be overused and misused.
decltype and std::declval are two features that go hand in hand and are most useful in template metaprogramming and in conjunction with the use of type deduction via auto, e.g. […]
Today’s post is the first guest post on this blog. Jonathan Boccara tells us about some exciting features that will hit the standard library after C++17: Ranges. Jonathan develops and teaches […]
With the increasing standardization of attributes, we get the opportunity to make our code clearer not only to other humans but also to the compiler and other tools.
When you accept weakly typed data as input or have them as output, still convert them to strongly typed objects inside your application.
Trailing return types are an oddity in C++ – we should use them only when necessary. Decide carefully whether to adopt them as a general style, and try to stay […]
I gave an introduction to variadic templates last week. Today I will talk about some more features that have or will be added in that area in C++11, 14 and […]