Skip to content

Commit 117b189

Browse files
committed
Remove noexcept from throwing default constructor
1 parent a3e4125 commit 117b189

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

include/fine/mutex.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace fine {
2121
class Mutex final {
2222
public:
2323
// Creates an unnamed Mutex.
24-
inline Mutex() noexcept : m_handle(enif_mutex_create(nullptr)) {
24+
inline Mutex() : m_handle(enif_mutex_create(nullptr)) {
2525
if (!m_handle) {
2626
throw std::runtime_error("failed to create mutex");
2727
}

include/fine/rwlock.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace fine {
2020
class RwLock final {
2121
public:
2222
// Creates an unnamed RwLock.
23-
inline RwLock() noexcept : m_handle(enif_rwlock_create(nullptr)) {
23+
inline RwLock() : m_handle(enif_rwlock_create(nullptr)) {
2424
if (!m_handle) {
2525
throw std::runtime_error("failed to create rwlock");
2626
}

0 commit comments

Comments
 (0)