
6 Jul
2006
6 Jul
'06
10:26 p.m.
"Matt Calabrese" <rivorus@gmail.com> writes:
What's more is, it's also entirely possible for the clone_ptr library to specialize std::sort for standard container iterators of clone_ptrs, therefore once again giving you just as efficient code as ptr_containers, but with entirely generic code.
I'm afraid that dog don't hunt. First of all, if you want to do anything generic you'd have to overload, since sort is a function template and there's no partial specialization of function templates. Second, you're not allowed to introduce overloads to std::. Third, the overloads might not match due to non-deduced contexts. -- Dave Abrahams Boost Consulting www.boost-consulting.com