diff options
author | joerg <joerg@pkgsrc.org> | 2013-08-30 10:19:37 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2013-08-30 10:19:37 +0000 |
commit | cfeba95992febf02216a89617e8e27fa967e89d9 (patch) | |
tree | a729962f8ea2f1695e454065cde92146cdb47234 /databases/soci/patches/patch-core_once-temp-type.h | |
parent | 358463efd2d5c0b574394f4684cfd1ca3268ce93 (diff) | |
download | pkgsrc-cfeba95992febf02216a89617e8e27fa967e89d9.tar.gz |
Support C++11. Bump revision.
Diffstat (limited to 'databases/soci/patches/patch-core_once-temp-type.h')
-rw-r--r-- | databases/soci/patches/patch-core_once-temp-type.h | 26 |
1 files changed, 26 insertions, 0 deletions
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) |