Refactor make_array_helper and array_deleter

Reduce the amount of code in allocate_array_helper, make_array_helper, and
array_deleter using the empty base class optimization technique.
This commit is contained in:
Glen Fernandes
2014-02-02 22:00:08 -08:00
parent aede0039bf
commit 63a05a3576
5 changed files with 135 additions and 277 deletions

View File

@@ -11,7 +11,6 @@
#include <boost/smart_ptr/detail/allocate_array_helper.hpp>
#include <boost/smart_ptr/detail/array_deleter.hpp>
#include <boost/smart_ptr/detail/array_traits.hpp>
#include <boost/smart_ptr/detail/sp_if_array.hpp>
#include <boost/type_traits/remove_cv.hpp>