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 » U++ Library support » LineEdit, EditFields, DocEdit » EditIntSpin is to provide operator=(int)
EditIntSpin is to provide operator=(int) [message #13902] Fri, 01 February 2008 03:53 Go to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 916
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Recently tried to write something like:
EditInt ei1;
ei1 = 0; //OK

EditIntSpin ei2;
ei2 = 0; //operator=(int) not found!

Compiler: MSC8.

My quick&dirty solution is as plain as simple.
EditCtrl.h, Line311, add:
EditIntSpin & operator=(int op) { EditInt::operator=(op); return *this; }

Re: EditIntSpin is to provide operator=(int) [message #13931 is a reply to message #13902] Fri, 01 February 2008 22:40 Go to previous message
mirek is currently offline  mirek
Messages: 11844
Registered: November 2005
Ultimate Member
Mindtraveller wrote on Thu, 31 January 2008 21:53

Recently tried to write something like:
EditInt ei1;
ei1 = 0; //OK

EditIntSpin ei2;
ei2 = 0; //operator=(int) not found!

Compiler: MSC8.

My quick&dirty solution is as plain as simple.
EditCtrl.h, Line311, add:
EditIntSpin & operator=(int op) { EditInt::operator=(op); return *this; }




Well, sorry about that, "operator=" was deprecated in favor of universal operator<<=.

Mirek
Previous Topic: LineEdit and WhenLeftClick
Next Topic: Best way to implement a two-way LineEdit
Goto Forum:
  


Current Time: Thu Apr 25 11:48:13 CEST 2019

Total time taken to generate the page: 0.00608 seconds