Boost logo

Boost :

From: Peder Holt (peder.holt_at_[hidden])
Date: 2004-12-02 09:29:27


On Thu, 02 Dec 2004 08:21:43 -0500, David Abrahams
<dave_at_[hidden]> wrote:
> Peder Holt wrote:
>
> > given a metafunction is_iterator<> there may be a way around this problem:
>
> Problem is, it's impossible to write that metafunction.
>

:(
What a shame.

For dinkumware stl (for VC6.5) it is possible to write a more
specialized metafunction:
is_stl_iterator<> as the relevant iterators has a common base class
(vector<T> uses T*)

Is this also feasible for other stl-implementations?

Of course, this would only solve the problem for stl containers. The
question is whether this is a common enough usage that it is advisable
to implement support for it.

Peder

> --
> Dave Abrahams
> Boost Consulting
> http://www.boost-consulting.com
>
> _______________________________________________
>
>
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


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