Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2000-11-01 14:31:29


Sorry, I mis-typed.

----- Original Message -----
From: "Gary Powell" <Gary.Powell_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, November 01, 2000 1:25 PM
Subject: RE: [boost] Re: Shades, swap or whatever

>
> > A big disadvantage of
> > using function template specialization is that the most obvious syntax
to
> > use makes it order-dependent:
> >
> > template <class T> void f(T); // #1
> > template <> void f<int*>(int*); // #2
I meant:
template <> void f(int*); // #2
> > template <class T> void f(T*); // #3
> >
> > #2 specializes #1, but:
> >
> > template <class T> void f(T); // #1
> > template <class T> void f(T*); // #3
> > template <> void f<int*>(int*); // #2
Again I meant:
template <> void f(int*); // #2
> > Now #2 specializes #3.


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