Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-08-28 11:03:47


[on function template explicit specializations]

A better example that demonstrates the problem is:

template<class T> void f(T, int);
template<class T> void f(int, T);

template<> void f<int>(int, int); // which f?

(See core issue #285.)

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?

--
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