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: 3238

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: 5383

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: 2327

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: 7315

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: 2398

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: 2271

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: 2366

C++ Core Guidelines: The noexcept Specifier and Operator

If you skim through the remaining rules to error handling, you often read the word noexcept. Before I write about the rules to error handling, I write first about the noexcept specifier and the noexcept operator in this post. 

Read more
Add CommentViews: 3636

Subscribe to the newsletter (+ pdf bundle)

Blog archive

Source Code

Visitors

Today 1293

All 1153643

Currently are 180 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments