Force template parameter to derive from class

Hi! I have a templated class:

template <typename T> class Example etc etc

How can I ensure T derives from a certain class? I can't use C++20 and I can't just use the base class because it would be inefficient for the application I'm building…any kind of help would be great

submitted by /u/Fintaman
[link] [comments]

* This article was originally published here

Related Posts

Leave a Reply

Your email address will not be published.