|
Boost : |
Subject: Re: [boost] More flexible any_cast for boost::any
From: Nevin Liber (nevin_at_[hidden])
Date: 2013-11-27 10:20:44
On 26 November 2013 09:24, DeadMG <wolfeinstein_at_[hidden]> wrote:
>
>
> Enabling this variety of any_cast would substantially improve the
> composability of boost::any. For example, it's arguable that std::function
> is merely boost::any but with additional interface requirements.
Well, they both use type erasure. I don't see how this exception trick
helps, though.
> With such
> an any_cast enhancement, it would be quite trivial to compose std::function
> implementations or similar concepts on top of boost::any.
>
Do you have a prototype implementation somewhere that we can look at?
-- Nevin ":-)" Liber <mailto:nevin_at_[hidden]> (847) 691-1404
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk