Boost logo

Boost :

Subject: Re: [boost] [function] function wrapping and exception safety recap
From: Gottlob Frege (gottlobfrege_at_[hidden])
Date: 2010-10-27 01:46:00


On Tue, Oct 19, 2010 at 4:11 AM, Emil Dotchevski
<emil_at_[hidden]> wrote:
>
> Because function<T,A1> is not the same type as function<T,A2>.
>

You can make them pretty convertable by overloading constructors and
casting operators.
And/or a common base type.

I would like to be able to specify the SBO size. ie function<T, 12>
and function<T, 16>. But be able to pass it around to anything that
expects a function<T>.
Surely we should be able to make that work efficiently?

Tony


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk