C
coder_lol
class A
{
};
int main()
{
A a; //Allocated on the stack.
}
Can I override the allocator for "a" to put a on the heap? I have a
problem where if my thread is killed asynchronously, the stack does
not get unwound, so I'd need everything to be on a heap I can control
and free.
Thank-you,
{
};
int main()
{
A a; //Allocated on the stack.
}
Can I override the allocator for "a" to put a on the heap? I have a
problem where if my thread is killed asynchronously, the stack does
not get unwound, so I'd need everything to be on a heap I can control
and free.
Thank-you,