[xsd-users] C++ 11 move semantics

Ovanes Markarian om_codesynthesis at keywallet.com
Thu Jul 4 07:07:15 EDT 2013


On Thu, Jul 4, 2013 at 11:36 AM, Boris Kolpackov <boris at codesynthesis.com>wrote:

> The reason we have a temporary in the first place is older/broken
> C++ compilers. For example, IBM xlC cannot pass std::auto_ptr without
> a named temporary.
>
> So what I did is add --std option which allows one to specify the
> C++ standard that the generated code should conform to. If you
> specify --std c++11, then the temporary is not generated. This
> fix is in the repository for the next release.
>

Cool! That sounds like a good compromize ;) Just a minor suggestion and
offtopic to that thread. auto_ptr was deprecated in C++11, so the c++11
flag should possibly use a unique_ptr instead?


Thanks,
Ovanes


More information about the xsd-users mailing list