Home » Developing U++ » U++ Developers corner » MultiList::Add variants
| MultiList::Add variants [message #17788] |
Thu, 28 August 2008 18:26 |
 |
mirek
Messages: 14271 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
|
|
|
|
Goto Forum:
Current Time: Sat Nov 22 13:49:01 CET 2025
Total time taken to generate the page: 0.09764 seconds
|