From 9250fbaead7ff5208697d57859ac8e8fd2721786 Mon Sep 17 00:00:00 2001 From: TeBoring Date: Tue, 26 May 2015 15:50:06 -0700 Subject: In std11, on mac, operator new doesn't take right reference. --- src/google/protobuf/map.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/google') diff --git a/src/google/protobuf/map.h b/src/google/protobuf/map.h index 543b45d7..58a1817a 100644 --- a/src/google/protobuf/map.h +++ b/src/google/protobuf/map.h @@ -167,7 +167,7 @@ class Map { } } -#if __cplusplus >= 201103L +#if __cplusplus >= 201103L && !defined(GOOGLE_PROTOBUF_OS_APPLE) template void construct(NodeType* p, Args&&... args) { new (p) NodeType(std::forward(args)...); -- cgit v1.2.3