Boost logo

Boost :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2005-02-02 01:29:01


Jonathan Turkanis writes:
> christopher diggins wrote:
>> Hello all,
>>
>> I just realized that an empty BIL interface,
>>
>> BOOST_IDL_BEGIN(IAnything)
>> BOOST_IDL_EMPTY(IAnything)
>>
>> has some common ground with:
>>
>> boost::any
>>
>> Where boost::any stores a copy of a value of practical any type for
>> later extraction, IAnything can point to just about anything.
>
> Yes, I noticed this just a few days ago ;-)

[...]

> I'm thinking of adding a template boost::interfaces::any, which has cloning
> semantics and uses the same syntax as any for binding, i.e., assignment and
> construction from a const reference.
>
> template<typename Interface = IAnything>
> class any;

Are you aware of Alexander Nasonov's work on "dynamic_any"
(http://cpp-experiment.sourceforge.net/boost/libs/dynamic_any/doc/tutorial.html)?

-- 
Aleksey Gurtovoy
MetaCommunications Engineering

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