|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2004-12-08 18:28:14
Stefan Slapeta wrote:
> Mikhail Glushenkov wrote:
>
>>
>> I proposed enhancing any_cast by adding support
>> for extracting reference to the held value some
>> time ago(and it was proposed in the past),
>
> That was probably me.
>
>> but nobody
>> replied to that message. Looks like Boost.Any
>> maintainer's on the vacation.
>> Basic idea was to make this work
>> (now you have to use some obscure syntax):
>> T& object = any_cast<T&>(any_object);
>>
>
> I would like to see exactly the same semantics as for boost::get in the
> variant library: http://tinyurl.com/43nks
Ouch; I didn't know variant was defining get. This seems like a ripe
area for conflicts with Boost.Graph, which also has many free get()
functions for its property maps.
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk