
Neil Groves skrev:
Thank you for taking the time to review Boost.RangeEx.
On Sat, Feb 21, 2009 at 11:50 AM, Christopher Jefferson < chris@bubblescope.net> wrote:
2) Why isn't overwrite just an overload of copy?
I assumed that overload resolution would be problematic since the range and the iterator overloads have the same number of parameters, and the iterator version has to handle raw pointers etc. I may be under-estimating the meta-programming techniques of enable_if. I will perform some experimentation on old compilers and see how well they handle the change.
I guess there are two reasons: 1. overwrite is a more explicit name for what is going on. 2. without concepts, we can't tell if a template argument is a range or an iterator In addition, overwrite should use memcpy() when possible. -Thorsten