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 » U++ Core » Xmlize default value
Re: Xmlize default value [message #42003 is a reply to message #41707] Mon, 10 February 2014 15:07 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I have implemented this, but I have encountred nasty problem on the way. All works fine except for string, where there is unresolvable overloading ambiguity with

template <class T> XmlIO operator()(const char *tag, const char *itemtag, T& var);

which is variant intended to choose tag of items while serializing containers.

The only nice solution would be to change this non-operator method, something like

template <class T> XmlIO Container(const char *tag, const char *itemtag, T& var);

or perhaps possible remove it completely (currently, there are also default variants with "item", "key" etc...).

Any suggestions?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: proposal: bool Index::HasUnlinked()
Next Topic: To get xml errors from LoadFromXML
Goto Forum:
  


Current Time: Wed Apr 24 06:42:31 CEST 2024

Total time taken to generate the page: 0.02920 seconds