[xsd-users] Support for list initialization

Yury Zaytsev yury.zaytsev at traveltainment.de
Wed Feb 25 07:52:38 EST 2015


Hi,

I think that it would be very helpful to use alias declarations instead of non-aggregate classes in XSD, at least in C++11 mode, so that one can use list initialization for stuff like infomaps:

const xml_schema::namespace_infomap ns_map{{"", {ns_name, ns_schema}}};

Hopefully the attached patch clarifies what I mean. Obviously, it’s just syntactic sugar, but if you get a chance to implement it one day, it’s going to be welcome nevertheless.

All the best,

Dr. Yury V. Zaytsev
Senior Software Developer 
IT Data Production

TravelTainment GmbH
Carlo-Schmid-Straße 12
52146 Würselen/Aachen, Germany 
yury.zaytsev at traveltainment.de

http://www.traveltainment.de

Amtsgericht Aachen, HRB 15873
Geschäftsführer: Bernhard Steffens (Vorsitzender)
Dr. Oliver Rengelshausen



                


-------------- next part --------------
A non-text attachment was scrubbed...
Name: serialization-header.hxx.patch
Type: application/octet-stream
Size: 534 bytes
Desc: serialization-header.hxx.patch
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20150225/7a516644/serialization-header.hxx.obj


More information about the xsd-users mailing list