We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d9e310 commit d8095a7Copy full SHA for d8095a7
libcxx/include/__tree
@@ -1358,7 +1358,7 @@ private:
1358
// const_cast is not allowed at constexpr time.
1359
// we get around this by deleting and creating a new node value
1360
__lhs.~foo_type();
1361
- new (&__lhs)(foo_type) (tmp);
+ new (std::addressof(__lhs))(foo_type) (tmp);
1362
// __lhs = std::move(tmp);
1363
} else {
1364
// This is technically UB, since the object was constructed as `const`.
0 commit comments