This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Using C++20 concepts to enable composition over inheritance - a tiny demo. | |
// Notes from a lovely talk by Jonathan Gopel | |
// | |
// Source: | |
// Using Modern C++ to Eliminate Virtual Functions - Jonathan Gopel - CppCon 2022 | |
// https://www.youtube.com/watch?v=gTNJXVmuRRA | |
// See also: | |
// https://en.cppreference.com/w/cpp/language/constraints | |
#include <concepts> |