Topic: partial specialization of function templates?


Author: fvali@eecs.ku.edu (faisal vali)
Date: Thu, 27 Feb 2003 21:23:18 +0000 (UTC)
Raw View
Can anyone from the C++ standard's committee (or anyone with knowledge
of their proceedings) please update me as to what the status is on the
proposal by Peter Dimov for adding partial specialization of function
templates to the standard?
Anyone remember the committee's initial reaction?

This proposal was made in early 2001 i think.
Here is a link to the proposal:
http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/papers/2001/n1295.htm
regards,
Faisal Vali

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]





Author: Terence Kelling <kelling@arlut.utexas.edu>
Date: 1998/07/09
Raw View
Is it possible to partially specialize function templates?  An example
would be:

template <class A, class B> function(A a, B b) {

    // general template function
}

template <class A> function<A, int>(A a, int b) {

    // partial specialization
}

According to my skimming of the draft, I see no mention of it.  And if
the standard does not allow it, why?

Thanks,
Terence Kelling
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]