diff options
author | David Seifert <soap@gentoo.org> | 2016-10-15 12:48:25 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2016-10-15 13:47:48 +0200 |
commit | d4a343c2ce203f42978599f260fe53ef5f6c55e5 (patch) | |
tree | ea758cd953eedaec149cca4192e20d633397f8b0 /dev-cpp/libcutl/files | |
parent | dev-libs/xerces-c: Version bump to 3.1.4 (diff) | |
download | gentoo-d4a343c2ce203f42978599f260fe53ef5f6c55e5.tar.gz gentoo-d4a343c2ce203f42978599f260fe53ef5f6c55e5.tar.bz2 gentoo-d4a343c2ce203f42978599f260fe53ef5f6c55e5.zip |
dev-cpp/libcutl: New package (successor of dev-cpp/libcult)
Package-Manager: portage-2.3.2
Diffstat (limited to 'dev-cpp/libcutl/files')
-rw-r--r-- | dev-cpp/libcutl/files/libcutl-1.10.0-fix-c++14.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-cpp/libcutl/files/libcutl-1.10.0-fix-c++14.patch b/dev-cpp/libcutl/files/libcutl-1.10.0-fix-c++14.patch new file mode 100644 index 000000000000..a6f1a505485b --- /dev/null +++ b/dev-cpp/libcutl/files/libcutl-1.10.0-fix-c++14.patch @@ -0,0 +1,53 @@ +Make dtors noexcept(false) when compiling in C++11 and above. This avoids silent +breakage due to the semantic exception changes between C++98 and C++11. + +--- a/cutl/fs/auto-remove.cxx ++++ b/cutl/fs/auto-remove.cxx +@@ -13,6 +13,9 @@ + { + auto_remove:: + ~auto_remove () ++#if __cplusplus >= 201103L ++ noexcept(false) ++#endif + { + if (!canceled_) + { +@@ -23,6 +26,9 @@ + + auto_removes:: + ~auto_removes () ++#if __cplusplus >= 201103L ++ noexcept(false) ++#endif + { + if (!canceled_) + { +--- a/cutl/fs/auto-remove.hxx ++++ b/cutl/fs/auto-remove.hxx +@@ -26,7 +26,11 @@ + { + } + +- ~auto_remove (); ++ ~auto_remove () ++#if __cplusplus >= 201103L ++ noexcept(false) ++#endif ++ ; + + void + cancel () +@@ -51,7 +55,11 @@ + struct LIBCUTL_EXPORT auto_removes + { + auto_removes (): canceled_ (false) {} +- ~auto_removes (); ++ ~auto_removes () ++#if __cplusplus >= 201103L ++ noexcept(false) ++#endif ++ ; + + void + add (path const& p) |