U++ framework
Do not panic. Ask here before giving up.

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: 14291
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: Tue May 19 08:38:37 GMT+2 2026

Total time taken to generate the page: 0.00443 seconds