This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12423] Function template fails to match
- From: "mj1 at cog dot brown dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Sep 2003 18:44:17 -0000
- Subject: [Bug c++/12423] Function template fails to match
- References: <20030926173603.12423.mj1@cog.brown.edu>
- 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=12423
mj1 at cog dot brown dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
------- Additional Comments From mj1 at cog dot brown dot edu 2003-09-26 18:44 -------
Quite right! And the ANSI standard doesn't include a data_type for map, so this
follows the standard.
Thanks!
Mark
------- Additional Comments From bangerth at dealii dot org 2003-09-26 17:58
-------
That's not a bug. std::map has no type data_type (it might have
had one in the past, but it doesn't have in 3.3) so the return
type is invalid after matching the function argument types. Thus,
SFINAE comes into play and the template is rejected as a candidate.
W.