+ Reply to Thread
Results 1 to 2 of 2

Thread: Is is good to inherit from the STL container?

  1. #1

    Is is good to inherit from the STL container?

    Hi All,

    Is is good to inherit from the STL container class?

    Regards.

  2. #2
    Hi,

    If you are very sure that you do not allocate any memory in your derived class then only do this.

    Because STL container do not have 'virtual' destructor.

    Please see this link for more information on 'virtual' destructor: http://www.codeexperts.com/showthrea...ual-destructor

    Regards.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts