Convert function parameter for inner array size into template parameter and make identifiers in array_deleter consistent with those in array_utility

[SVN r81782]
This commit is contained in:
Glen Fernandes
2012-12-08 05:25:50 +00:00
parent 8093967da7
commit 6b0d96af96
4 changed files with 19 additions and 19 deletions
@@ -140,7 +140,7 @@ namespace boost {
p3 = reinterpret_cast<T3*>(list);
p1 = reinterpret_cast<T1*>(p2);
d2 = get_deleter<boost::detail::array_deleter<T2[]> >(s1);
d2->construct_list(p2, p3, M);
d2->construct_list<M>(p2, p3);
return boost::shared_ptr<T>(s1, p1);
}
template<typename T>
@@ -163,7 +163,7 @@ namespace boost {
p3 = reinterpret_cast<T3*>(list);
p1 = reinterpret_cast<T1*>(p2);
d2 = get_deleter<boost::detail::array_deleter<T2[N]> >(s1);
d2->construct_list(p2, p3, M);
d2->construct_list<M>(p2, p3);
return boost::shared_ptr<T>(s1, p1);
}
#if defined(BOOST_HAS_RVALUE_REFS)