Having fun with Detection idiom and macros in C++
Introduction The detection idiom is now well known in C++. However, some implementations necessitate a lot of boilerplate, and I do believe that macros may help here. So, let’s having fun with the detection idiom and macros in C++! The goal with detection idiom in C++ The detection idiom is used to know at compile […]
C++
Thoughts about getters and setters in C++
This article deals with getters and setters in C++. I am sorry, it is not about coroutine, but part 2 of thread pools will come in the following weeks. TL;DR: Getters and setters are bad for structure like objects. Introduction In this article, I will only give my opinion about them, I don’t want to […]
C++
(C++, getters, immutable, performance, setters)
C++ error handling, let’s abuse the co_await operator
Introduction Sometimes (very rarely :-p), errors may happen. It can be due to misuse from the user, it can be due to a system error, a corrupted, or a missing file. Errors can pop from everywhere. There are several ways to handle errors. In this article, we are going to see how coroutine may be […]
C++, coroutines
(c++ coroutine, c++20, error-handling, expected)