This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51989] std::deque::iterator recognised as container
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 25 Jan 2012 09:48:32 +0000
- Subject: [Bug c++/51989] std::deque::iterator recognised as container
- Auto-submitted: auto-generated
- References: <bug-51989-4@http.gcc.gnu.org/bugzilla/>
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