default template arguments

default template arguments

Post by Carl Barro » Fri, 02 Feb 2007 23:36:18



is the following a legal specialization of
template <class A,class B=void> struct foo{};
template<>struct foo<int>{}; or is it required to be
template<> struct foo<int,void>{}; ???
chapter and verse please of accepted standard appreciated.

---
[ 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.yqcomputer.com/ ]