[xsde-users] Utilizing Inhertied String Classes
Boris Kolpackov
boris at codesynthesis.com
Wed May 23 04:30:58 EDT 2012
Hi Jonathan,
Ivan Le Lann <ivan.lelann at free.fr> writes:
> sen.ipaddr().assign("10.0.0.1");
Yes, Ivan's suggestion is probably the best way to do it currently.
The reason we don't generate any extra constructors for types like
your ipaddr is because it would require C++ exception support, which
is optional in XSD/e.
However, seeing that there is no reason this can't be done when C++
exceptions are enabled and also seeing that it is an often-requested
feature, we will add an option in the next release of XSD/e to generate
these "initialization" constructors, so that you will be able to write:
ipaddr ip ("10.0.0.1");
Boris
More information about the xsde-users
mailing list