On 25/09/11 10:57 PM, dsimcha wrote:
On 9/25/2011 4:40 PM, Peter Alexander wrote:
On 25/09/11 1:20 AM, dsimcha wrote:
On 9/24/2011 7:55 PM, Andrei Alexandrescu wrote:
Defining and using an allocator interface would have a small speed
impact (i.e. allocation would entail an indirect call) but I think that
would be acceptable.

Agreed. My much bigger concern w.r.t. dynamic interfaces is their
inflexibility, i.e. that they can't be used effectively with template
metaprogramming.

In what way would you want to meta-program with allocators?

Allocating arrays, etc.

I'm not following. Can you give an example of something that wouldn't work if we had dynamic interfaces instead of templated ones?

Reply via email to