26 lines
1.0 KiB
Diff
26 lines
1.0 KiB
Diff
From 849e5c6b3a8746d9205102bd3df4e140cead405a Mon Sep 17 00:00:00 2001
|
|
From: Stephan Hartmann <stha09@googlemail.com>
|
|
Date: Sat, 18 Jul 2020 15:11:13 +0000
|
|
Subject: [PATCH] GCC: remove explicit from AtomicReference constructor
|
|
|
|
---
|
|
.../nearby/src/cpp/platform_v2/public/atomic_reference.h | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/third_party/nearby/src/cpp/platform_v2/public/atomic_reference.h b/third_party/nearby/src/cpp/platform_v2/public/atomic_reference.h
|
|
index 5742724..bbb8c01 100644
|
|
--- a/third_party/nearby/src/cpp/platform_v2/public/atomic_reference.h
|
|
+++ b/third_party/nearby/src/cpp/platform_v2/public/atomic_reference.h
|
|
@@ -37,7 +37,7 @@ class AtomicReference<T, std::enable_if_t<sizeof(T) <= sizeof(std::uint32_t) &&
|
|
final {
|
|
public:
|
|
using Platform = api::ImplementationPlatform;
|
|
- explicit AtomicReference(T value)
|
|
+ AtomicReference(T value)
|
|
: impl_(Platform::CreateAtomicUint32(static_cast<std::uint32_t>(value))) {
|
|
}
|
|
~AtomicReference() = default;
|
|
--
|
|
2.26.2
|
|
|