Skip to content

Conversation

@joemmett
Copy link
Member

@joemmett joemmett commented Apr 7, 2020

…ed classes

Implements the struct type std::destroying_delete_t, variable
std::destroying_delete, and feature test macro
__cpp_lib_destroying_delete in C++20 mode with a compiler that defines
__cpp_impl_destroying_delete.

…ed classes

Implements the struct type `std::destroying_delete_t`, variable
`std::destroying_delete`, and feature test macro
`__cpp_lib_destroying_delete` in C++20 mode with a compiler that defines
`__cpp_impl_destroying_delete`.
@joemmett joemmett requested a review from a team as a code owner April 7, 2020 18:04
... and annotate to update when VS 2019 16.7p1 releases with support in MSVC.
Copy link
Contributor

@CaseyCarter CaseyCarter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, I pushed some updates:

  • clang-format
  • Feature-test macro tests for __cpp_impl_destroying_delete and __cpp_lib_destroying_delete (variously enabled until we update our toolset compiler)
  • Enabled the libc++ destroying delete test when compiling with clang to get some library test coverage

I've also filed #693 to cleanup the messy partially-enabled bits after VS 2019 16.7p1 ships.

EDIT: (I'd port these changes to your internal PR, @joemmett, but I can't find one??!?)

@StephanTLavavej StephanTLavavej added the cxx20 C++20 feature label Apr 7, 2020
@CaseyCarter CaseyCarter merged commit 714f499 into microsoft:master Apr 8, 2020
@CaseyCarter
Copy link
Contributor

Congratulations on your first contribution to the STL!

@sylveon
Copy link
Contributor

sylveon commented May 29, 2020

The transition comments mention 16.7 preview 1, but this doesn't seems to work on the public release of 16.7 preview 1

@CaseyCarter
Copy link
Contributor

The transition comments mention 16.7 preview 1, but this doesn't seems to work on the public release of 16.7 preview 1

It should work when compiling with Clang - the tests work, anyway. The compiler support for destroying delete in MSVC was delayed to 16.7p2 as indicated in #693.

@joemmett joemmett deleted the destroying_delete branch March 11, 2021 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cxx20 C++20 feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants