Menu

type bool turns into type int?

Help
Anonymous
2004-04-23
2004-04-23
  • Anonymous

    Anonymous - 2004-04-23

    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

     
    • Anonymous

      Anonymous - 2004-04-23

      found it,

      myvalue = XmlRpcValue(true); // this works

      thanks,
      p

       

Log in to post a comment.