Skip to content

Commit 8232397

Browse files
committed
Change private inheritance of exceptions to public
This fixes not being able to catch it across plugin boundary.
1 parent 2ac796f commit 8232397

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

checkedweakptr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include <memory>
55

6-
class PointerNullException : private std::exception
6+
class __attribute__((visibility("default"))) PointerNullException : public std::exception
77
{
88
public:
99
virtual const char* what() const noexcept override

mutexowned.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
#define MUTEXOWNED_H
33

44
#include <mutex>
5-
#include <memory>
65

7-
class MutexOwnedObjectNull : private std::exception
6+
class __attribute__((visibility("default"))) MutexOwnedObjectNull : public std::exception
87
{
98
public:
109
virtual const char* what() const noexcept override

0 commit comments

Comments
 (0)