Boost logo

Boost :

Subject: Re: [boost] metaprogramming: associating a type with another type
From: DE (satan66613_at_[hidden])
Date: 2010-01-29 14:33:45


> template<typename type1, typename type2>
> int foo(const base<type1>&, const base<type2>&)
> {//handles ANY two types derived from base with arbitrary properties
> }

> template<typename type1, typename type2>
> int foo(const base<type1>&, const base<type2, propertyX>&)
> {//the first argument can be ANY type but the second must be associated with propertyX
> }

the latter must be bar() of course

-- 
Pavel

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