[xsd-users] Plans f or C++11?

Ray Lischner rlischner at proteuseng.com
Mon Jun 4 10:50:23 EDT 2012


What are your plans for C++11?

Currently, Code Synthesis 3.3 has a number of features that can be used to reduce the amount of copying, such as using auto_ptr<> for required, non-fundamental data members, which would probably be better off taking advantage of move semantics.

That is, if an element has cardinality one, don't use a pointer to store it, and don't take an auto_ptr<> argument in the constructor. Instead, take an object by value, and move it into the data member. The root-element construction functions should return objects by value, so they can be moved to their destination. Etc., etc., etc.

I realize this is a significant change to the way Code Synthesis works now, and you would need to support C++03 and C++11 in the same product, but I think the performance gains could be significant.

Ray Lischner,
Distinguished Member of Technical Staff
133 National Business Pkwy, Ste 150     t. 443.539.3448
Annapolis Junction, MD 20701            c. 410.854.9787
rlischner at proteuseng.com                f. 443.539.3370


More information about the xsd-users mailing list