Subject: Re: [boost] Any real-world need for static_cast_iterator, const_cast_iterator, dynamic_cast_iterator?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-02-03 07:08:06
Nigel Stewart wrote:
> In addition to the specialised adaptors in the boost iterator
> library, does it make any sense to add:
> ...iterator adaptors providing embedded static_cast<>, const_cast<>
> or dynamic_cast<> when dereferencing? (Rather than just throwing
> them straight on the scrap heap...)
Personally, I've had much use of a custom made match<Type>() adaptor
(using the Boost.RangeEx pipe syntax), that performs a transform with
dynamic_pointer_cast and then filters null results.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk