
----- Original Message ----- From: "Felipe Magno de Almeida" <felipe.m.almeida@gmail.com> To: <boost@lists.boost.org> Sent: Friday, November 12, 2010 10:44 AM Subject: Re: [boost] Minimizing Dependencies within Generic Classes for Faster and Smaller Programs 2010/11/11 Ion GaztaƱaga <igaztanaga@gmail.com>:
[snip]
I plan to implement this technique for Boost.Container if the library is accepted,
It seems that for C++0X, you must make the red-black-tree dependent on Allocator, since you must use Allocator::pointer everywhere. Or am I missing something? _______________________________________________ Hi, The iterator can depend on the Allocator::pointer but this doesn't forcerly means that it depends on the Allocator. If Allocator::pointer is a typedef to a type idependent of Allocator the independency is ensured. In addition we could make iterator depend on Allocator::void_pointer and use pointer_traits<>::rebind. Am I missing something? Best, Vicente