Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gsl::copy returns remaining range #422

Closed
wants to merge 1 commit into from

Conversation

MikeGitb
Copy link
Contributor

As originally planned for #344, gsl::copy now returns the remaining destination range.

If both source and destination span have a static extent, the result is a new span of static extent. Otherwise a span of dynamic extent is returned.

Additionally, the unit tests are now more fine granular than before. Due to the resulting indentation change I'd recommend viewing the diff of tests/algorithm_tests.cpp with the -w flag.

@MikeGitb
Copy link
Contributor Author

MikeGitb commented Mar 4, 2017

As this PR needs some overhaul before it can be merged: Is there any interest in merging this in the near future?

@ewoudvc
Copy link
Contributor

ewoudvc commented Apr 28, 2017

I'm a bit late to the this party.
Would be handy that gsl::copy has a return similar to std::copy_n, no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants