This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15469] Unable to compile valid code including transform() algorithm: <unknown type> is reported for the forth parameter
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 May 2004 02:39:53 -0000
- Subject: [Bug c++/15469] Unable to compile valid code including transform() algorithm: <unknown type> is reported for the forth parameter
- References: <20040515210135.15469.relf@os2.ru>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-05-17 02:39 -------
No, the bug is actually something completely different. When you
refer to 'secondof' in the call to transform, you reference a
template without giving the compiler the chance to actually
deduce the template arguments. You need to write this as
follows:
transform(M.begin(),M.end(),V.begin(),secondof<int,int>);
Wolfgang
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|DUPLICATE |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15469