Closed Bug 1303302 Opened 5 years ago Closed 5 years ago
Destructible check for refcounted type doesn't work with MSVC
58 bytes, text/x-review-board-request
There is a static_assert check for ensuring that refcounted object doesn't have dangerous public destructor. But that check is only available with Clang and GCC. It should work with MSVC as well.
Comment on attachment 8791934 [details] Bug 1303302 - Add IsDestructible trait in TypeTraits and use it for refcounted type static check. https://reviewboard.mozilla.org/r/79204/#review77774
Attachment #8791934 - Flags: review?(nfroyd) → review+
Looks like that version doesn't work with GCC and Clang... I'll submit another version which is compatible with all.
Pushed by email@example.com: https://hg.mozilla.org/integration/autoland/rev/60d0e1dbddc0 Add IsDestructible trait in TypeTraits and use it for refcounted type static check. r=froydnj
You need to log in before you can comment on or make changes to this bug.