[Bug c++/12531] Default value of a template with two template arguments not accepted
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Oct 7 01:51:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12531
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Error specializing a class |Default value of a template
|template to form a default |with two template arguments
|value of a constructor |not accepted
|argument |
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-07 01:51 -------
The problem is not that specialization is there but GCC rejects the default value of using a
template with two arguments.
For an example:
template<class PRI, class T>
struct is_same {
static const int value = false;
};
struct JCF {
JCF(int i = is_same<int, int>::value ) {} /// parse error in this line
};
More information about the Gcc-bugs
mailing list