
23 Jul
2012
23 Jul
'12
4:37 p.m.
On Monday 23 July 2012 09:26:21 Steven Watanabe wrote:
AMDG
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.