Boost logo

Boost :

Subject: Re: [boost] [type_erasure] Review started (July 18-27, 2012)
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2012-07-23 12:37:30

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.

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