"John Harrison" <> wrote in
news:bgc5ja$n8au8$:
(...)
> Its not completely clear to me how your description fits with the
> class you wrote. But
>
> 1) delete ptr will not compile since ptr is declared as void*.
> 2) You have no means of deciding which type you are actually holding.
> 3) You have no sensible copying or assigning behaviour which means
> this class is difficult (at best) to use in a vector (if that is your
> intention). 4) The copying of vectors as return values in the get_*
> methods is very inefficient.
Ok my bad - I didn't mark it as a "sketch".
My point wasn't about the details, but rather about the general idea of
using a dynamically created std::vector. Is it a way?
I thought people in this newsgroup are more tolerant than a C++ compiler.
regards,
bartek