On Saturday 12 April 2014 17:45:33 you wrote:
13. Feature request: Please, provide aligned_deleter function object in a separate header. The function object should call aligned_free() to free memory and can be used with unique_ptr. This pretty much is done in one of the examples in the docs.
Actually, I should clarify this. aligned_deleter should be not quite the same as in the docs but rather: struct aligned_deleter { typedef void result_type; template< typename T > result_type operator() (T* p) const BOOST_NOEXCEPT_IF(BOOST_NOEXCEPT_EXPR(p->~T())) { p->~T(); boost::aligned_free(p); } }; Note that the deleter is not a template. The point is not to duplicate the pointee type in the unique_ptr specialization.