Skip to content

Ensure iterators convert to const iterators - #1264

Open
Carson Radtke (carsonRadtke) wants to merge 2 commits into
microsoft:mainfrom
carsonRadtke:carsonradtke/const-iterator-conversions
Open

Ensure iterators convert to const iterators#1264
Carson Radtke (carsonRadtke) wants to merge 2 commits into
microsoft:mainfrom
carsonRadtke:carsonradtke/const-iterator-conversions

Conversation

@carsonRadtke

Copy link
Copy Markdown
Member

Summary

  • add compile-time assertions for implicit iterator-to-const-iterator conversion in dyn_array and span
  • add the missing implicit conversion to dyn_array_iterator

Testing

  • MSVC C++14: dyn_array_tests, span_compatibility_tests
  • MSVC C++20: dyn_array_tests, span_compatibility_tests

Add compile-time coverage for dyn_array and span iterator conversions, and implement the missing dyn_array conversion.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant