summaryrefslogtreecommitdiffstats
path: root/contrib/restricted/boost/libs/serialization/src/xml_archive_exception.cpp
diff options
context:
space:
mode:
authorneksard <[email protected]>2022-02-10 16:45:33 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:33 +0300
commit1d9c550e7c38e051d7961f576013a482003a70d9 (patch)
treeb2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /contrib/restricted/boost/libs/serialization/src/xml_archive_exception.cpp
parent8f7cf138264e0caa318144bf8a2c950e0b0a8593 (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/restricted/boost/libs/serialization/src/xml_archive_exception.cpp')
-rw-r--r--contrib/restricted/boost/libs/serialization/src/xml_archive_exception.cpp136
1 files changed, 68 insertions, 68 deletions
diff --git a/contrib/restricted/boost/libs/serialization/src/xml_archive_exception.cpp b/contrib/restricted/boost/libs/serialization/src/xml_archive_exception.cpp
index 19ce8957e17..f4ca98c0869 100644
--- a/contrib/restricted/boost/libs/serialization/src/xml_archive_exception.cpp
+++ b/contrib/restricted/boost/libs/serialization/src/xml_archive_exception.cpp
@@ -1,68 +1,68 @@
-/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
-// xml_archive_exception.cpp:
-
-// (C) Copyright 2009 Robert Ramey - http://www.rrsd.com .
-// Use, modification and distribution is subject to the Boost Software
-// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
-
-// See http://www.boost.org for updates, documentation, and revision history.
-
-#if (defined _MSC_VER) && (_MSC_VER == 1200)
-# pragma warning (disable : 4786) // too long name, harmless warning
-#endif
-
-
-#include <exception>
-#include <string>
-
-#include <boost/assert.hpp>
-
-#define BOOST_ARCHIVE_SOURCE
-#include <boost/serialization/config.hpp>
-#include <boost/archive/xml_archive_exception.hpp>
-
-namespace boost {
-namespace archive {
-
-BOOST_ARCHIVE_DECL
-xml_archive_exception::xml_archive_exception(
- exception_code c,
- const char * e1,
- const char * e2
- ) :
- archive_exception(other_exception, e1, e2)
- {
- switch(c){
- case xml_archive_parsing_error:
- archive_exception::append(0, "unrecognized XML syntax");
- break;
- case xml_archive_tag_mismatch:{
- unsigned int l;
- l = archive_exception::append(0, "XML start/end tag mismatch");
- if(NULL != e1){
- l = archive_exception::append(l, " - ");
- archive_exception::append(l, e1);
- }
- break;
- }
- case xml_archive_tag_name_error:
- archive_exception::append(0, "Invalid XML tag name");
- break;
- default:
- BOOST_ASSERT(false);
- archive_exception::append(0, "programming error");
- break;
- }
- }
-
-BOOST_ARCHIVE_DECL
-xml_archive_exception::xml_archive_exception(xml_archive_exception const & oth) :
- archive_exception(oth)
- {
- }
-
-BOOST_ARCHIVE_DECL xml_archive_exception::~xml_archive_exception() BOOST_NOEXCEPT_OR_NOTHROW {}
-
-} // archive
-} // boost
+/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
+// xml_archive_exception.cpp:
+
+// (C) Copyright 2009 Robert Ramey - http://www.rrsd.com .
+// Use, modification and distribution is subject to the Boost Software
+// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+// See http://www.boost.org for updates, documentation, and revision history.
+
+#if (defined _MSC_VER) && (_MSC_VER == 1200)
+# pragma warning (disable : 4786) // too long name, harmless warning
+#endif
+
+
+#include <exception>
+#include <string>
+
+#include <boost/assert.hpp>
+
+#define BOOST_ARCHIVE_SOURCE
+#include <boost/serialization/config.hpp>
+#include <boost/archive/xml_archive_exception.hpp>
+
+namespace boost {
+namespace archive {
+
+BOOST_ARCHIVE_DECL
+xml_archive_exception::xml_archive_exception(
+ exception_code c,
+ const char * e1,
+ const char * e2
+ ) :
+ archive_exception(other_exception, e1, e2)
+ {
+ switch(c){
+ case xml_archive_parsing_error:
+ archive_exception::append(0, "unrecognized XML syntax");
+ break;
+ case xml_archive_tag_mismatch:{
+ unsigned int l;
+ l = archive_exception::append(0, "XML start/end tag mismatch");
+ if(NULL != e1){
+ l = archive_exception::append(l, " - ");
+ archive_exception::append(l, e1);
+ }
+ break;
+ }
+ case xml_archive_tag_name_error:
+ archive_exception::append(0, "Invalid XML tag name");
+ break;
+ default:
+ BOOST_ASSERT(false);
+ archive_exception::append(0, "programming error");
+ break;
+ }
+ }
+
+BOOST_ARCHIVE_DECL
+xml_archive_exception::xml_archive_exception(xml_archive_exception const & oth) :
+ archive_exception(oth)
+ {
+ }
+
+BOOST_ARCHIVE_DECL xml_archive_exception::~xml_archive_exception() BOOST_NOEXCEPT_OR_NOTHROW {}
+
+} // archive
+} // boost