diff --git a/examples/copy_example.cpp b/examples/copy_example.cpp index 9c96930..66d6d3b 100644 --- a/examples/copy_example.cpp +++ b/examples/copy_example.cpp @@ -111,7 +111,7 @@ inline I2 copy_(const I1& first, const I1& last, const I2& out) } template -inline T* copy_(const T* first, const T* last, T* out) +inline T* copy_(const T*& first, const T*& last, T*& out) { return detail::copier< ::boost::has_trivial_assign::value @@ -239,3 +239,4 @@ int cpp_main(int argc, char* argv[]) +