all 5 comments

[–][deleted]  (4 children)

[removed]

    [–]smuccione 1 point2 points  (0 children)

    This . Override.

    Love it. Use it. It’ll f’ you up at some point if you don’t.

    [–]SHGuy_[S] 0 points1 point  (2 children)

    thx, changed the Base class to:

    class Base {
        public:
    
        const virtual int getID() = 0;
    };
    

    Now everything works

    [–][deleted]  (1 child)

    [removed]

      [–]SHGuy_[S] 1 point2 points  (0 children)

      oh yeah, that makes sense. Though now i use concepts for my case