This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]