|
Boost : |
Subject: Re: [boost] Abstract STL Container Adaptors
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2013-03-15 12:25:25
> -----Original Message-----
> From: Boost [mailto:boost-bounces_at_[hidden]] On Behalf Of Andy Jost
> Sent: Friday, March 15, 2013 3:58 PM
> To: boost_at_[hidden]
> Subject: Re: [boost] Abstract STL Container Adaptors
>
> From: Boost [mailto:boost-bounces_at_[hidden]] On Behalf Of Steven Watanabe
>
> OK, you had the answer last time I posted to boost. Maybe I should just be sending DMs to you
instead :)
>
>
> > BOOST_TYPE_ERASURE_MEMBER(has_count, count); template<class T> using
> > abstract_set = boost::type_erasure::any<has_count<std::size_t(const
> > T&)>, _self&>;
>
> Thanks, very cool! The docs make sense.
< What I'm talking about could readily be implemented using the TypeErasure library.
> So would abstract STL container adaptors be a useful thing to add to TypeErasure as a small
utility and demonstration?
Yes.
Demonstrations are always useful to make the discussion less abstract.
My feeling is that TypeErasure has much wider application that many have appreciated so far.
Paul
--- Paul A. Bristow, Prizet Farmhouse, Kendal LA8 8AB UK +44 1539 561830 07714330204 pbristow_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk