Boost logo

Boost Users :

From: bringiton bringiton (kneeride_at_[hidden])
Date: 2006-07-24 03:49:15


Is it possible to manually call the constructor of an object. It is
possible to call the destructor (a trick i found from
std::vector<T>::pop_back())

I stepped through the std::vector<T>::push_back() to find how they
call the constructor for memory that has already been allocated, but I
could not follow the code.

Test3 t;
t.~Test3(); // OK
t.Test3(); // compile error


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net