diff options
author | Antal Tátrai <antal.tatrai@gmail.com> | 2016-03-05 09:32:59 +0100 |
---|---|---|
committer | Antal Tátrai <antal.tatrai@gmail.com> | 2016-03-05 09:32:59 +0100 |
commit | 3cc35adb6dca9057a790d253b9f5e2b9b000a106 (patch) | |
tree | fd95bcb7a491680107c2ce5131d82befca5bf168 /src/google | |
parent | e70f9256af79af6092eae4ce22a61b1b6651f37d (diff) | |
download | protobuf-3cc35adb6dca9057a790d253b9f5e2b9b000a106.tar.gz protobuf-3cc35adb6dca9057a790d253b9f5e2b9b000a106.tar.bz2 protobuf-3cc35adb6dca9057a790d253b9f5e2b9b000a106.zip |
Fix compiling clang/libc++ builds. (Issue: #1266)
Diffstat (limited to 'src/google')
-rw-r--r-- | src/google/protobuf/map.h | 2 |
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> |