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++/15469] Unable to compile valid code including transform() algorithm: <unknown type> is reported for the forth parameter


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


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