C++ Core Guidelines: Type Erasure

,Rule "T.5: Combine generic and OO techniques to amplify their strengths, not their costs"  of the core guidelines to generic programming uses type erasure as an example. Type erasure? Really! Of course, it takes me two posts to explain this advanced template technique.

Read more
Add CommentViews: 27133

C++ Core Guidelines: Rules for Templates and Generic Programming

I give in this post an introduction to the rules for generic programming in C++. Generic programming is from my point of view the outstanding feature and the future of C++. Hence it follows, that this and the upcoming posts are about the future of C++.

Read more
Tags: templates
Comments 1Views: 11280

C++ Core Guidelines: Rules for Constants and Immutability

Making objects or methods const has two benefits. First, the compiler will complain when you break the contract. Second, you tell the user of the interface that the function will not modify the arguments.

Read more
Add CommentViews: 6742

C++ Core Gudelines: goto considered Evil

If you can't throw an exception and can't use final_action (finally) from the guideline support library, you have a problem. Exceptional states require exceptional actions: goto. Really?

Read more
Add CommentViews: 7159

The new pdf bundle is ready: C++ Core Guidelines - Concurrency and Parallelism

I have prepared the pdf bundle. To get it is quite simple.

Read more
Comments 1Views: 5427

C++ Core Guidelines: finally in C++

To make my point clear, this post is about the exceptional case that you can not throw an exception. If your program runs in a restricted embedded environment or you have to fulfil a hard-real-time requirement, this situation may be not so exceptional to you.

Read more
Add CommentViews: 15642

For Free: Four Vouchers to Win

Bartłomiej Filipek, author of the well-known C++-blog: Bartek's coding blog gave me four vouchers for his book C++ in Detail.

Read more
Add CommentViews: 3966

I'm Proud to Present: Modern C++ Concurrency is available as interactive course

Based on my book "Concurrency with Modern C++" educative.io created an interactive course. You can have it now at a discount of 38 %.

"Modern C++ Concurrency" is a interactive journey through current and upcoming concurrency in C++.

  • C++11 and C++14 have the basic building blocks for creating concurrent or parallel programs.
  • With C++17 we got the parallel algorithms of the Standard Template Library (STL). That means, most of the algorithms of the STL can be executed sequential, parallel, or vectorized.
  • The concurrency story in C++ goes on. With C++20 we can hope for extended futures, coroutines, transactions, and more.
Read more
Add CommentViews: 6166

C++ Core Guidelines: Rules to Exception Handling

Today's post is about the right way to throw and catch exceptions. This means in particular when you should throw and how you should catch an exception.

Read more
Add CommentViews: 8182

Subscribe to the newsletter (+ pdf bundle)

Blog archive

Source Code

Visitors

Today 2284

All 2072988

Currently are 160 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments