In std11, on mac, operator new doesn't take right reference.

pull/434/head
TeBoring 10 years ago
parent 8908cf16fe
commit 9250fbaead
  1. 2
      src/google/protobuf/map.h

@ -167,7 +167,7 @@ class Map {
}
}
#if __cplusplus >= 201103L
#if __cplusplus >= 201103L && !defined(GOOGLE_PROTOBUF_OS_APPLE)
template<class NodeType, class... Args>
void construct(NodeType* p, Args&&... args) {
new (p) NodeType(std::forward<Args>(args)...);

Loading…
Cancel
Save