This is an archive of the discontinued LLVM Phabricator instance.

Constrain shared_ptr(Y*) - 2874
AbandonedPublic

Authored by zoecarver on Jun 5 2019, 11:01 AM.

Details

Summary

This patch fixes issue 2874 by constraining the constructor shared_ptr(Y*) . Keep in mind the type trait must be supported in C++03 (believe me; it used to look worse).

Diff Detail

Event Timeline

zoecarver created this revision.Jun 5 2019, 11:01 AM
zoecarver abandoned this revision.Feb 19 2021, 2:18 PM

Didn't realize I already had a patch for this: D81417.