Boost logo

Boost :

Subject: Re: [boost] [type_erasure] Review started (July 18-27, 2012)
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-07-23 13:54:02


On 07/23/2012 09:37 AM, Andrey Semashev wrote:
> On Monday 23 July 2012 09:26:21 Steven Watanabe wrote:
>> On 07/23/2012 08:44 AM, Andrey Semashev wrote:
>>> Also, one more question. I didn't find any visitation support in the
>>> library. Is there any or is it planned?
>> No.
>>> This was one feature I missed in Boost.Any.
>> What exactly is visitation supposed to do?
>> It's impossible to create a Boost.Variant
>> style apply_visitor for Boost.Any.
> No, not exactly like in Boost.Variant because "any" doesn't communicate the
> list of possible types of the stored value. Instead, the visitor can manifest
> the types it's ready to process. This kind of visitation I had to implement in
> my library. I think, this would be a useful feature.

I'm not going to implement this in my library.
It can be implemented without loss of generality
or performance using the interfaces provided
by the library. It also doesn't require any
particularly advanced knowledge of the library.

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at