In my latest blog post, "A virtual destructor in C++, when?," you'll learn how to handle a destructor and when to make it virtual.
https://andreasfertig.com/blog/2025/07/a-virtual-destructor-in-cpp-when/
In my latest blog post, "A virtual destructor in C++, when?," you'll learn how to handle a destructor and when to make it virtual.
https://andreasfertig.com/blog/2025/07/a-virtual-destructor-in-cpp-when/
Don't miss out, I'm hosting a free of charge 1-Hour C++ training class
https://andreasfertig.com/blog/2025/04/free-1-hour-cpp-training-class/
I'm thrilled to let you know that I'll give the workshop Safe and Efficient C++ for Embedded Environments (compact) at C++Online
Happy New Year!
Ready to level up your C++ skills in 2024?
What if you could write clean, robust, up-to-date C++ code? My self-paced course + live coaching starts this January.
Let’s write unique code: https://fertig.to/4wcppco
I’m excited to share a new addition to my C++17/20 course: live group coaching sessions! Want to stay ahead in modern C++? Sign up for my newsletter and be the first to know: https://andreasfertig.com/newsletter/
Ready to upgrade your C++ skills? Sign up for my self-study course on C++17 & C++20 and get a FREE ticket to @meetingcpp remote 2024!
Learn from experts like Herb Sutter and boost your coding projects! Offer ends 10/19: https://bit.ly/4h5nI9J
You care about efficient C++? Then my "Modern C++: When Efficiency Matters" class is great for you! Come and join me for a 2-day post-conference workshop at @CppCon.
In my latest blog post, "C++ Insights with Clang 18 and more", I give you an update about C++ Insights and what happened the last few days.
Check out my post, "Why you shouldn't provide an empty destructor", you learn about the difference between user-provided and user-declared in C++ and why it matters.
There is a new #job opportunity at #OpenVPN for a #automation #QA role
https://careers.openvpn.net/o/core-aqa-engineer-c
We want to expand our Core team (developing the "lower level" components of the OpenVPN stack) to become even better at testing our low-level C++ code.
Currently we target #cpp17 and will move forward as compilers improve across all supported platforms.
Feel free to reach out if you have any questions!
In my latest blog post, "Aggregates: C++17 vs. C++20", you will learn about an interesting difference between C++17 and 20.
In my latest blog post, "When an empty destructor is required", you learn about a specific case where you must violate the rule from last month's post.
https://andreasfertig.blog/2023/12/when-an-empty-destructor-is-required/
Okay, I need the #Fediverse swarm intelligence regarding #cplusplus:
Let's say I write a function like this, in C++17 or later:
```
inline int Calculate(int a, int b) {
return a+b;
}
```
I put it in a file called `calculate.h` and include (and use) it at multiple other places in the code.
Let's assume the function is not inlined at call sites. Due to the `inline` keyword, the compiler will ensure that `Calculate()` exists only once. (See https://en.cppreference.com/w/cpp/language/inline)
Question: Will the compiler generate the instructions multiple times, or does it avoid compiling a function body that's already going to be compiled in a different translation unit?
In other words: Do lots of `inline` functions in header files slow down compilation?
In my latest blog post, "push_back vs. emplace_back: When to use what", you learn the difference between these two and a potential pitfall.
In my latest blog post, "A string class that is only insatiable at compile-time", you learn how to have a class that can only be instantiated at compile-time.
See my new article:
https://www.cppstories.com/2022/structured-bindings/
Have you tried structured bindings from C++17?
I *rarely* ask on #StackOverflow
But today was a question worth asking, I think: https://stackoverflow.com/q/74601619/85371 "Order of evaluation in v != std::exchange(v, predecessor(v))"
Any #cpp standardese buffs know this off-hand, say for #cpp17?
| Writing your first view from scratch (C++20 / P0789)
| https://hannes.hauswedell.net/post/2018/04/11/view1/
| #cplusplus #ranges #cpp17 #cpp20
| Thanks to Eric Niebler & CoderCasey
for their patience with my questions