This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12531] Default value of a template with two template arguments not accepted
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Oct 2003 01:51:58 -0000
- Subject: [Bug c++/12531] Default value of a template with two template arguments not accepted
- References: <20031006211542.12531.jfranzoy@yahoo.com.ar>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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
};