mixing boehm allocator with other allocators

Alexander Herz <[email protected]>
Newsgroups gmane.comp.programming.garbage-collection.boehmgc
Message-ID <[email protected]>
Hi,

I want to use a foreign allocator together with boehmgc:

template<T>
class X:public boehmgc::gc_cleanup
{
    T* mem;

    X()
    {
        mem=alloc();
    }

    ~X()
    {
        free(mem);
    }
};

where X is allocated via boehm's allocator methods.

Will this just work is is this asking for trouble?
If T contains pointers to objectes allocated via boehm's allocater, will
they be properly collected?

Thx,
Alex
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.