Boost logo

Boost :

From: jsiek_at_[hidden]
Date: 2000-08-30 16:47:19


As I understand it, the difference is that in the code below you are
not specializing swap()... there is no such thing as function
specialization. You are overloading swap() and therefore the quote I
posted doesn't apply (which I think is an oversight in the standard).

Gary Powell writes:
>
> > This should work just fine, and I don't think there is a std namespace
> > problem:
> >
> This is the exact same problem I had with swap.
>
> namespace std {
> template<class T, class S, class R>
> swap(myType<T,S,R>, myType<T,S,R> );
> }
>
> is illegal. So unless I'm confused, and it wouldn't be the first time, you
> can't change the number of template arguments. (I don't have a copy of the
> std reference. If you want I can look up the stuff Alan G. cited, I'm sure
> the discussion is in the boost archive.)
>
> Yours Truly,
>
> -gary-
>
> gary.powell_at_[hidden]
>
>
>
>
>


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