[Bug c++/12423] Function template fails to match

mj1 at cog dot brown dot edu gcc-bugzilla@gcc.gnu.org
Fri Sep 26 19: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=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.



More information about the Gcc-bugs mailing list