Skip to main content

New answers tagged

4 votes

Polymorphic deleter for unique_ptr

This Code Does Not Compile I threw together some boilerplate for Integer and IntegerDeleter. The provided code appears to be ...
Davislor's user avatar
  • 8,159
2 votes

Polymorphic deleter for unique_ptr

Looks pretty reasonable for those that need it (the size overhead may be prohibitive for many, since the deleter takes no space at all in many common cases). It seems strange having constructors that ...
Toby Speight's user avatar
  • 79.3k

Top 50 recent answers are included