[xsd-users] Moving over to c++11

Boris Kolpackov boris at codesynthesis.com
Fri Mar 24 04:45:48 EDT 2023


Paul McGrath <paul.s.mcgrath at gmail.com> writes:

> it looks as though the equivalent c++11 function of the old function
> (below) does not exist.
> 
> ::std::auto_ptr< ::MatML_Doc >
> MatML_Doc_ (const ::std::string& uri,
>             ::xml_schema::flags f = 0,
>             const ::xml_schema::properties& p = ::xml_schema::properties ());

In C++11 and later the parsing functions are changed to return
std::unique_ptr instead of (deprecated) std::auto_ptr:

::std::unique_ptr< ::MatML_Doc >
MatML_Doc_ (const ::std::string& uri,
            ::xml_schema::flags f = 0,
            const ::xml_schema::properties& p = ::xml_schema::properties ());



More information about the xsd-users mailing list