Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing std::shared_ptr<void> initialization from void* #3873

Merged
merged 6 commits into from
Jul 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions stl/inc/memory
Original file line number Diff line number Diff line change
Expand Up @@ -1485,9 +1485,8 @@ private:
template <class _Yty, class = void>
struct _Can_scalar_delete : false_type {};
template <class _Yty>
struct _Can_scalar_delete<_Yty, void_t<decltype(delete _STD declval<_Yty*>())>> : true_type {};
template <>
struct _Can_scalar_delete<void> : false_type {};
struct _Can_scalar_delete<_Yty, void_t<decltype(delete _STD declval<_Yty*>())>>
: std::integral_constant<bool, !bool(is_void<_Yty>::value)> {};
CaseyCarter marked this conversation as resolved.
Show resolved Hide resolved

template <class _Yty, class = void>
struct _Can_array_delete : false_type {};
Expand Down