aboutsummaryrefslogtreecommitdiff
path: root/xml/parser
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-31 12:57:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-31 12:57:38 +0200
commit665b6242fc338bb21ee8ac5131012cf6d230ed1e (patch)
tree7eee3cfa76277eb395e46ee07047860a0d881fd5 /xml/parser
parent77bc33bcdf611d0f5c703d3d8e20d6f5aff8814c (diff)
Work around symbol exporting issues, throw() deprecation
Diffstat (limited to 'xml/parser')
-rw-r--r--xml/parser13
1 files changed, 7 insertions, 6 deletions
diff --git a/xml/parser b/xml/parser
index d891c3e..5a8fac9 100644
--- a/xml/parser
+++ b/xml/parser
@@ -13,7 +13,8 @@
#include <iosfwd>
#include <cstddef> // std::size_t
-#include <xml/details/config.hxx> // LIBSTUDXML_EXTERNAL_EXPAT
+#include <xml/details/config.hxx> // STUDXML_NOTHROW_NOEXCEPT,
+ // LIBSTUDXML_EXTERNAL_EXPAT
#ifndef LIBSTUDXML_EXTERNAL_EXPAT
# include <xml/details/expat/expat.h>
@@ -36,18 +37,18 @@
namespace xml
{
- class LIBSTUDXML_EXPORT parsing: public exception
+ class parsing: public exception
{
public:
virtual
- ~parsing () throw ();
+ ~parsing () STUDXML_NOTHROW_NOEXCEPT {}
parsing (const std::string& name,
unsigned long long line,
unsigned long long column,
const std::string& description);
- parsing (const parser&, const std::string& description);
+ parsing (const parser& p, const std::string& description);
const std::string&
name () const {return name_;}
@@ -62,10 +63,10 @@ namespace xml
description () const {return description_;}
virtual const char*
- what () const throw ();
+ what () const STUDXML_NOTHROW_NOEXCEPT {return what_.c_str ();}
private:
- void
+ LIBSTUDXML_EXPORT void
init ();
private: