Boost logo

Boost :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-04-26 13:22:56


AMDG

Sean Hunt wrote:
> Mathias Gaunard wrote:
>
>> Sean Hunt wrote:
>>
>>
>>> dynamic polymorphism on the return type.
>>>
>>>
>> What is that supposed to mean?
>> Are you talking about covariant return types?
>>
>>
> No, I picked a bad name. I meant that the return type is known, so that
> I might store a bound_func<int>, which is some nullary functor which
> returns an int.
>

It sounds like you want boost::function<int()>

In Christ,
Steven Watanabe


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