diff --git a/src/google/protobuf/map.h b/src/google/protobuf/map.h index dfc624200..9dd425726 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 void construct(NodeType* p, Args&&... args) { - new (static_cast(p)) NodeType(std::forward(args)...); + new (const_cast(static_cast(p))) NodeType(std::forward(args)...); } template