Subject: Re: [boost] Detecting if a class overrides free store functions
From: Michael Marcin (mike.marcin_at_[hidden])
Date: 2009-01-07 17:01:36
Steven Watanabe wrote:
> Mathias Gaunard wrote:
>> Michael Marcin wrote:
>>> I want to create a STL allocator that uses a class's static new
>>> function if it exists and will fallback on std::allocator::allocate
>>> if it doesn't.
>> std::allocator::allocate already uses operator new.
> std::allocator::allocate always uses global new. I think the idea is to
> T::operator new instead when it exists.
-- Michael Marcin