Click here to Skip to main content
15,887,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: operator () overloading. Pin
9ine23-Feb-06 5:18
9ine23-Feb-06 5:18 
GeneralRe: operator () overloading. Pin
David Crow23-Feb-06 5:45
David Crow23-Feb-06 5:45 
GeneralRe: operator () overloading. Pin
9ine23-Feb-06 22:59
9ine23-Feb-06 22:59 
GeneralRe: operator () overloading. Pin
David Crow24-Feb-06 2:42
David Crow24-Feb-06 2:42 
GeneralRe: operator () overloading. Pin
9ine24-Feb-06 3:00
9ine24-Feb-06 3:00 
QuestionRe: operator () overloading. Pin
David Crow24-Feb-06 3:08
David Crow24-Feb-06 3:08 
AnswerRe: operator () overloading. Pin
9ine25-Feb-06 1:08
9ine25-Feb-06 1:08 
GeneralRe: operator () overloading. Pin
jhwurmbach23-Feb-06 22:20
jhwurmbach23-Feb-06 22:20 
9ine wrote:
how can we handle this in one &operator() and class


You can't, a C++ is (on purpose) unable to overload functions based on their return value.
You can only overload based on parameters.

So you are forced to rethink your design.



"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."

-- Caius Petronius, Roman Consul, 66 A.D.


-- modified at 5:20 Friday 24th February, 2006
GeneralRe: operator () overloading. Pin
9ine23-Feb-06 22:53
9ine23-Feb-06 22:53 
GeneralRe: operator () overloading. Pin
jhwurmbach23-Feb-06 23:24
jhwurmbach23-Feb-06 23:24 
AnswerRe: operator () overloading. Pin
Wim Engberts23-Feb-06 5:47
Wim Engberts23-Feb-06 5:47 
JokeRe: operator () overloading. Pin
jhwurmbach23-Feb-06 22:21
jhwurmbach23-Feb-06 22:21 
QuestionStarting a process in the background no console Pin
theprinc22-Feb-06 23:00
theprinc22-Feb-06 23:00 
AnswerRe: Starting a process in the background no console Pin
Nibu babu thomas22-Feb-06 23:04
Nibu babu thomas22-Feb-06 23:04 
GeneralRe: Starting a process in the background no console Pin
theprinc22-Feb-06 23:21
theprinc22-Feb-06 23:21 
AnswerRe: Starting a process in the background no console Pin
David Crow23-Feb-06 3:44
David Crow23-Feb-06 3:44 
QuestionFormat a CString value from longdate to shortdate Pin
Kalthoff22-Feb-06 22:38
Kalthoff22-Feb-06 22:38 
AnswerRe: Format a CString value from longdate to shortdate Pin
toxcct22-Feb-06 22:43
toxcct22-Feb-06 22:43 
GeneralRe: Format a CString value from longdate to shortdate Pin
Kalthoff22-Feb-06 23:45
Kalthoff22-Feb-06 23:45 
AnswerRe: Format a CString value from longdate to shortdate Pin
James R. Twine23-Feb-06 2:49
James R. Twine23-Feb-06 2:49 
Questioncreating folders with HTTPS Pin
logicaldna22-Feb-06 22:31
logicaldna22-Feb-06 22:31 
QuestionCHttpConnection for post method Pin
murali_utr22-Feb-06 22:29
murali_utr22-Feb-06 22:29 
QuestionHow to hook system's Drag&drop operation Pin
welli22-Feb-06 21:57
welli22-Feb-06 21:57 
QuestionCreate xml with 4 levels use dataset in .Net Pin
Koibito Yo22-Feb-06 21:21
Koibito Yo22-Feb-06 21:21 
AnswerRe: Create xml with 4 levels use dataset in .Net Pin
Ryan Binns22-Feb-06 21:28
Ryan Binns22-Feb-06 21:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.