Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-11-15 11:41:12


"Peter Dimov" <pdimov_at_[hidden]> writes:

> I'm somewhat amused by the possibilities that enable_if offers. Perhaps one
> day we'll think of
>
> template<class V> enable_if< is_instance_of< std::vector<_, _>, V> >::type
> f( V & v);
>
> as a natural alternative to
>
> template<class T, class A> void f( std::vector<T, A> & v );
>
> but I doubt it. ;-)

Hey, lookee there. See what Peter thought of?

;-)

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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