diff options
Diffstat (limited to 'databases/soci/patches')
-rw-r--r-- | databases/soci/patches/patch-core_once-temp-type.cpp | 13 | ||||
-rw-r--r-- | databases/soci/patches/patch-core_once-temp-type.h | 26 |
2 files changed, 39 insertions, 0 deletions
diff --git a/databases/soci/patches/patch-core_once-temp-type.cpp b/databases/soci/patches/patch-core_once-temp-type.cpp new file mode 100644 index 00000000000..ee20017e057 --- /dev/null +++ b/databases/soci/patches/patch-core_once-temp-type.cpp @@ -0,0 +1,13 @@ +$NetBSD: patch-core_once-temp-type.cpp,v 1.1 2013/08/30 10:19:37 joerg Exp $ + +--- core/once-temp-type.cpp.orig 2013-08-30 00:17:03.209692967 +0000 ++++ core/once-temp-type.cpp +@@ -35,7 +35,7 @@ once_temp_type & once_temp_type::operato + return *this; + } + +-once_temp_type::~once_temp_type() ++once_temp_type::~once_temp_type() SOCI_ONCE_TEMP_TYPE_NOEXCEPT + { + rcst_->dec_ref(); + } diff --git a/databases/soci/patches/patch-core_once-temp-type.h b/databases/soci/patches/patch-core_once-temp-type.h new file mode 100644 index 00000000000..714bc03d7f9 --- /dev/null +++ b/databases/soci/patches/patch-core_once-temp-type.h @@ -0,0 +1,26 @@ +$NetBSD: patch-core_once-temp-type.h,v 1.1 2013/08/30 10:19:37 joerg Exp $ + +--- core/once-temp-type.h.orig 2013-08-30 00:16:03.749693674 +0000 ++++ core/once-temp-type.h +@@ -21,6 +21,12 @@ namespace details + + class ref_counted_statement; + ++#if __cplusplus >= 201103L ++#define SOCI_ONCE_TEMP_TYPE_NOEXCEPT noexcept(false) ++#else ++#define SOCI_ONCE_TEMP_TYPE_NOEXCEPT ++#endif ++ + // this needs to be lightweight and copyable + class SOCI_DECL once_temp_type + { +@@ -30,7 +36,7 @@ public: + once_temp_type(once_temp_type const & o); + once_temp_type & operator=(once_temp_type const & o); + +- ~once_temp_type(); ++ ~once_temp_type() SOCI_ONCE_TEMP_TYPE_NOEXCEPT; + + template <typename T> + once_temp_type & operator<<(T const & t) |