aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/map.h
diff options
context:
space:
mode:
authorGravatar Antal Tátrai <antal.tatrai@gmail.com>2016-03-05 09:32:59 +0100
committerGravatar Antal Tátrai <antal.tatrai@gmail.com>2016-03-05 09:32:59 +0100
commit3cc35adb6dca9057a790d253b9f5e2b9b000a106 (patch)
treefd95bcb7a491680107c2ce5131d82befca5bf168 /src/google/protobuf/map.h
parente70f9256af79af6092eae4ce22a61b1b6651f37d (diff)
Fix compiling clang/libc++ builds. (Issue: #1266)
Diffstat (limited to 'src/google/protobuf/map.h')
-rw-r--r--src/google/protobuf/map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/map.h b/src/google/protobuf/map.h
index dfc62420..9dd42572 100644
--- a/src/google/protobuf/map.h
+++ b/src/google/protobuf/map.h
@@ -548,7 +548,7 @@ class Map {
!defined(GOOGLE_PROTOBUF_OS_NACL) && !defined(GOOGLE_PROTOBUF_OS_ANDROID)
template<class NodeType, class... Args>
void construct(NodeType* p, Args&&... args) {
- new (static_cast<void*>(p)) NodeType(std::forward<Args>(args)...);
+ new (const_cast<void*>(static_cast<const void*>(p))) NodeType(std::forward<Args>(args)...);
}
template<class NodeType>