You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-libs/beagle/files/beagle-3.0.3-fix-c++14.patch

31 lines
1.1 KiB

Fix building with C++14, where destructors are noexcept(true) by default.
See also: https://bugs.gentoo.org/show_bug.cgi?id=597342
--- a/PACC/Threading/Thread.cpp
+++ b/PACC/Threading/Thread.cpp
@@ -79,6 +79,9 @@
\attention If the destructor in the derived thread class (e.g. MyThread above) does not wait for thread termination, the potential hazardous situation is that the runtime system will have deleted all of its members before calling this destructor (in C++, class destructors are called in reversed sequence). Thus, the still running thread could access deleted data members with unpredictable and unexpected results. So beware!
*/
Threading::Thread::~Thread(void)
+#if __cplusplus >= 201103L
+ noexcept(false)
+#endif
{
lock();
if(mThread) {
--- a/PACC/Threading/Thread.hpp
+++ b/PACC/Threading/Thread.hpp
@@ -53,7 +53,11 @@
class Thread : public Condition {
public:
Thread(void);
- virtual ~Thread(void);
+ virtual ~Thread(void)
+#if __cplusplus >= 201103L
+ noexcept(false)
+#endif
+ ;
void cancel(void);
bool isRunning(void) const;