This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21661] Inconsistent function/constructor template requirements
- 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: 19 May 2005 12:02:21 -0000
- Subject: [Bug c++/21661] Inconsistent function/constructor template requirements
- References: <20050519094045.21661.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-19 12:02 -------
This is how C++ works, in the first case since it is a function template, the second template argument
can be determined by the function argument.
In the second example, the class template's template arguments cannot be determined by any
explicated way.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21661