Hi all,
When I set my XmlRpcValue myvalue =true, myvalue becomes type int instead of boolean (as indicated by the "<i4></i4>" in the xml generated by calling myvalue.toXml() )
How do I assign a boolean value instead?
i.e., the following assert fails:
XmlRpcValue myvalue = true; ASSERT(myvalue.getType() ==XmlRpcValue::TypeBoolean)
Thanks, P
found it,
myvalue = XmlRpcValue(true); // this works
thanks, p
Log in to post a comment.
Hi all,
When I set my XmlRpcValue myvalue =true, myvalue becomes type int instead of boolean (as indicated by the "<i4></i4>" in the xml generated by calling myvalue.toXml() )
How do I assign a boolean value instead?
i.e., the following assert fails:
XmlRpcValue myvalue = true;
ASSERT(myvalue.getType() ==XmlRpcValue::TypeBoolean)
Thanks,
P
found it,
myvalue = XmlRpcValue(true); // this works
thanks,
p