In std11, on mac, operator new doesn't take right reference.
This commit is contained in:
parent
8908cf16fe
commit
9250fbaead
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue