lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 30/01/2012 23:38, HyperHacker wrote:
<snip> since C++ doesn't provide a way to create an object in a pre-allocated block.
You can use placement new for that, but the problem is that in general external libraries don't let you mess with how they allocate and create objects so the best you can do is box the pointers they return, like you said.

Cheers,

Andre