0
class CTest : public std::vector<CTest*>
{
      // ...
};

Is it safe to do like this? Which should i use, vector or list if yes?

Loryan55
  • 325
  • 4
  • 13
  • In this world most of questions already have an answer. Somewhere – Loryan55 Jul 28 '13 at 20:50
  • Thats why theres a search box – Borgleader Jul 28 '13 at 20:51
  • Didn't know that. Damn. Maybe i am the first one who named such question correct, because i didn't found an answer. It is not so hard to just answer this question. – Loryan55 Jul 28 '13 at 20:54
  • This isn't _entirely_ redundant: it could be that the use of `CTest` in the inheritance creates additional problems. I don't think that it does, although the usual business of "who owns these pointers?" applies. – Davis Herring Sep 21 '17 at 17:56

0 Answers0