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

Home » U++ Library support » U++ Core » LoadFromXML problem and solution
Re: LoadFromXML problem and solution [message #36727 is a reply to message #36715] Fri, 29 June 2012 13:47 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
catch(...) is too quirky IMO. I have rather used
template <class T>
void XmlizeByJsonize(XmlIO& xio, T& x)
{
	if(xio.IsStoring())
		StoreJsonValue(xio, StoreAsJsonValue(x));
	else {
		try {
			LoadFromJsonValue(x, LoadJsonValue(xio.Node()));
		}
		catch(JsonizeError e) {
			throw XmlError("xmlize by jsonize error: " + e);
		}
	}
}


please check..

Mirek
 
Read Message
Read Message
Read Message
Previous Topic: why use fromsyschrset in the first sentence of the logfile?
Next Topic: XmlizeByJsonize() problem and proposed solution
Goto Forum:
  


Current Time: Thu May 14 12:15:31 GMT+2 2026

Total time taken to generate the page: 0.00507 seconds