Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » Template problem
Re: Template problem [message #14266 is a reply to message #14265] Thu, 21 February 2008 12:00 Go to previous messageGo to previous message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Hi,

your problem rather is related to wrong function overloading.
If you want to overload a function with another one, they must differ in their signature, i.e. they cannot have the same parameter list. The return value is not part of the signature, so you get an error.

You should decide which version to take.
I don't know what the MSC does, but I think it silently discards one function (which in my opinion is not a good habit).

Matthias
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Try / catch
Next Topic: multiple classes include-problem
Goto Forum:
  


Current Time: Wed Apr 24 14:58:48 CEST 2024

Total time taken to generate the page: 0.02496 seconds