C++ Insights - Episode 72: Why you should never call a virtual member function in a constructor
In this episode, you'll learn by example why you should never call a virtual member function from a constructor.
C++ Insights - Episode 72: Why you should never call a virtual member function in a constructor
In this episode, you'll learn by example why you should never call a virtual member function from a constructor.
Wouldn't it be great to write easy-to-read code that your compiler loves?
Templates help you to generate clean code. Discover essential tips and tricks on how to use them in my latest book:
Paper: https://amazon.com/dp/3949323074
E-book: https://fertig.to/btmpl
constexpr all the things! Since the evaluation of a constant expression never results in an erroneous behavior (EB, C++26)! (But use constexpr since C++11)
This was mentioned by many at the conference, not to forget: @DanielaKEngert, Mikhail Svetkin, and others.
@meetingcpp #cpp #cpp26 #cpp11 #meetingcpp #dev #undefined_behavior #ub #erroneous_behavior #eb
Finally introduced a converting constructor for C++11 in my take of (nonstd) variant with its idiosyncratic typelist to support C++98.
Hope to release v3.0.0 'really soon'.
Back to the future or something :)
variant lite - A C++17-like variant, a type-safe union for C++98, C++11 and later in a single-file header-only library. - martinmoene/variant-lite
Released v0.0.0 of string algorithm library string-lite, formerly string-bare.
I built Archetype, a C++11 header-only library that gives you type-erased views over any object implementing a given interface — all verified with SFINAE at compile time.
Useful for embedded, plugin architectures, and clean modular APIs.
📦 https://github.com/williamhaarhoff/archetype
#cplusplus #cpp11 #typeerasure #embedded #headeronly #opensource
Did I just hand-write an implementation of #cpp23 std::expected for use in #cpp11? Very, very yes.
Is it complete? No. But it is functional enough.
Am I pleased with it? Also very yes!
Will I use it in #ProjectSpecialK? I dunno, maybe. We'll see.
Wouldn't it be great to write easy-to-read code that your compiler loves?
Templates help you to generate clean code. Discover essential tips and tricks on how to use them in my latest book:
Paper: https://amazon.com/dp/3949323074
E-book: https://leanpub.com/notebookcpp-tips-and-tricks-with-templates