[Bug c++/15469] Unable to compile valid code including transform() algorithm: <unknown type> is reported for the forth parameter

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Mon May 17 19:13:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list