Using std::copy