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 » Developing U++ » U++ Developers corner » MultiList::Add variants
MultiList::Add variants [message #17788] Thu, 28 August 2008 18:26
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
There seems to be minor overloading problem with Add variants, that demonstrates nicely while compiling the example with GCC (in MSC, due to its not really precise overloading rules implementation, everything is OK):

/home/cxl/upp.src/bazaar/MultiListExample/main.cpp: In constructor ‘TestWindow::TestWindow()’:
/home/cxl/upp.src/bazaar/MultiListExample/main.cpp:46: error: call of overloaded ‘Add(int&, Upp::String&)’ is ambiguous
/home/cxl/upp.src/bazaar/MultiList/MultiList.h:143: note: candidates are: void MultiList::Add(const Upp::Value&, bool)
/home/cxl/upp.src/bazaar/MultiList/MultiList.h:145: note:                 void MultiList::Add(const Upp::Value&, const Upp::Value&, bool)


For now, I fixed the example adding explicit "true", but maybe it is possible to do this better...

Mirek
Previous Topic: Standard button size....
Next Topic: Topic++ upgrade status
Goto Forum:
  


Current Time: Mon Apr 29 17:46:29 CEST 2024

Total time taken to generate the page: 0.03445 seconds