From 28f737a15d9ce5d9e8b06ab768ef858c07ae510e Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 5 Sep 2023 15:20:13 +0300 Subject: Make c++11 value default for xsd --std option Also add support for c++14, c++17, c++20, and c++23 values and drop passing --std option in tests and examples. --- xsd/doc/xsd-epilogue.xhtml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'xsd/doc/xsd-epilogue.xhtml') diff --git a/xsd/doc/xsd-epilogue.xhtml b/xsd/doc/xsd-epilogue.xhtml index 632b2d9..178cf8b 100644 --- a/xsd/doc/xsd-epilogue.xhtml +++ b/xsd/doc/xsd-epilogue.xhtml @@ -290,7 +290,11 @@ namespace http://www.example.com/xmlns/my built-in types are mapped to either std::string or std::wstring depending on the character type selected with the --char-type option - (char by default).

+ (char by default). The binary XML Schema types are + mapped to either std::unique_ptr<xml_schema::buffer> + or std::auto_ptr<xml_schema::buffer> depending on the C++ + standard selected with the --std option + (c++11 by default).

 namespace http://www.w3.org/2001/XMLSchema
@@ -337,10 +341,10 @@ namespace http://www.w3.org/2001/XMLSchema
 
   QName xml_schema::qname;
 
-  base64Binary std::auto_ptr<xml_schema::buffer>
-               std::auto_ptr<xml_schema::buffer>;
-  hexBinary std::auto_ptr<xml_schema::buffer>
-            std::auto_ptr<xml_schema::buffer>;
+  base64Binary std::[unique|auto]_ptr<xml_schema::buffer>
+               std::[unique|auto]_ptr<xml_schema::buffer>;
+  hexBinary std::[unique|auto]_ptr<xml_schema::buffer>
+            std::[unique|auto]_ptr<xml_schema::buffer>;
 
   date xml_schema::date;
   dateTime xml_schema::date_time;
-- 
cgit v1.1