From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-08-28 11:39:16
From: "Darin Adler" <darin_at_[hidden]>
> On Tuesday, August 28, 2001, at 09:03 AM, Peter Dimov wrote:
> > Another example that I came up with is:
> > template<class T> void f(T);
> > template<class T> void f(T const);
> > template<> void f<int const>(int const); // which f?
> I'm pretty sure that this example is not valid because of the text in the
> C++ standard paragraph 8.3.5p3 that says "Any cv-qualifier modifying a
> parameter type is deleted." I think the const in "T const" is deleted.
template<class T> void f(T *);
template<class T> void f(T const *);
template<> void f<int const>(int const *); // which f?
-- Peter Dimov Multi Media Ltd.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk