c++ template destructors both obsolete challenging information types
in i asked formulating general container. controlling polymorphic templates seems right proceed go.
however, i can't life me figure out destructor should written. i wish owners memory allocated containers even instance constructor takes an array t (along the dimensions), allocated during point.
i means something like
mycontainer<float> blah();
...
delete blah;
and
mycontainer<complexobjecttype*> complexblah();
...
delete complexblah;`
can i something this? i but intelligent pointers?
again, interjection your input.
Comments
Post a Comment