Boost Users :
From: Michal Kandulski (Michal.Kandulski_at_[hidden])
Date: 2005-08-05 14:07:06
I'd like to implement a pimpl, pointing to a stack "allocated" buffer
by means of palcement new/destroy.
There would be no problem but there are alignment issues.
What really I need is:
- a way to check by te means of Boost wheater that an object of class
X can be placed (with placement new) in a buffer of given adress
- a way of getting a pointer to X (within the buffer) where the
object could be paced
const static int max_size = 100;
m_on_stack = value_of(max_size is big enough for an object of X);
m_pimpl = new (m_impl_buffer)Impl; // any alignment stuff here???
m_pimpl = new Impl;
I'll be gratefull for any help,
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