constexpr defaulted default constructor of WrappedMutex causes compile errors #8492
This commit is contained in:
parent
68cb69ea68
commit
1a371f628c
@ -116,7 +116,7 @@ class CallOnceInitializedMutex {
|
||||
// mutexes.
|
||||
class GOOGLE_PROTOBUF_CAPABILITY("mutex") PROTOBUF_EXPORT WrappedMutex {
|
||||
public:
|
||||
constexpr WrappedMutex() = default;
|
||||
constexpr WrappedMutex() {}
|
||||
void Lock() GOOGLE_PROTOBUF_ACQUIRE() { mu_.lock(); }
|
||||
void Unlock() GOOGLE_PROTOBUF_RELEASE() { mu_.unlock(); }
|
||||
// Crash if this Mutex is not held exclusively by this thread.
|
||||
|
Loading…
Reference in New Issue
Block a user