News for hackers. Stuff that matters.
Re:C Template Library by dragontamer on Wednesday December 30, 2020 @05:39PM (#25587095)
> Well, nothing I suppose, except BaseClass cannot then be a template

    template <class T>
    void myFunc(List<T*>){
        static_assert(stuff about T that you want to guarantee at compile time); 
    }
See here: https://en.cppreference.com/w/cpp/header/type_traits

For a list of common functions used for compile-time type checking.

Re:C Template Library by Alupis on Wednesday December 30, 2020 @06:09PM (#25587418)
Thank you for this conversation. You've given me some homework to read up on, and I appreciate it a lot!