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++/51989] std::deque::iterator recognised as container


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51989

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-01-25 09:48:32 UTC ---
not a gcc bug, you're code is invalid - values of default arguments are not
part of the function type and do not take part in deduction

you can do it in C++11 with decltype


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