Skip to content

Commit d6cc8e8

Browse files
authored
Merge pull request #42358 from compnerd/spelling
runtime: use explicit name for placement new
2 parents bc769ef + ce6d97d commit d6cc8e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/runtime/MetadataImpl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ struct NativeBox {
100100
}
101101

102102
static T *initializeWithCopy(T *dest, T *src) {
103-
return new (dest) T(*src);
103+
return ::new (dest) T(*src);
104104
}
105105

106106
static T *initializeWithTake(T *dest, T *src) {
107-
T *result = new (dest) T(std::move(*src));
107+
T *result = ::new (dest) T(std::move(*src));
108108
src->T::~T();
109109
return result;
110110
}

0 commit comments

Comments
 (0)