bsf icon indicating copy to clipboard operation
bsf copied to clipboard

std::make_shared performs 2 allocations on GCC/Clang when RTTI disabled

Open nemerle opened this issue 7 years ago • 1 comments

EDITED SUMMARY Not real solution for this other than waiting for GCC/Clang to fix it. If this is causing you problems manually enable RTTI.

ORIGINAL ISSUE Please note that shared_ptr will perform 2 allocs when rtti is disabled

This holds true for gcc<8 and clang <= 6.0

nemerle avatar May 08 '18 23:05 nemerle

Thanks for the heads up, that sucks but hopefully they resolve it in clang soon and we move to newer compilers. Worst case scenario someone will need to enable rtti if it causes too many issues.

BearishSun avatar May 09 '18 07:05 BearishSun