Create patch to fix two typos in the documentation
[anytun.git] / src / anytunError.h
index e31fa0e..02293cd 100644 (file)
@@ -47,6 +47,7 @@
 #define ANYTUN_anytunError_h_INCLUDED
 
 #include <sstream>
+#define BOOST_SYSTEM_ENABLE_DEPRECATED
 #include <boost/system/system_error.hpp>
 #include "datatypes.h"
 
@@ -81,7 +82,7 @@ class ErrorStringBuilder
 public:
   ErrorStringBuilder(ErrorStringBuilder const& src) { stream << src.stream.str(); };
   ErrorStringBuilder() {};
-  ~ErrorStringBuilder() { throw std::runtime_error(stream.str()); };
+  ~ErrorStringBuilder() NOEXCEPT(false) { throw std::runtime_error(stream.str()); };
 
   template<class T>
   std::ostream& operator<<(T const& value) { return stream << value; }