Skip to content

Make vector<bool> work again - #703

Merged
Kenny Kerr (kennykerr) merged 1 commit into
masterfrom
dunhor/vector-of-bool
Jul 29, 2020
Merged

Make vector<bool> work again#703
Kenny Kerr (kennykerr) merged 1 commit into
masterfrom
dunhor/vector-of-bool

Conversation

@dunhor

Copy link
Copy Markdown
Member

std::vector<bool> returns proxy objects for iteration/indexing, so switching to forwarding references where necessary. Still using std:move (over std::forward) since the intent is taking ownership.

@kennykerr Kenny Kerr (kennykerr) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kennykerr
Kenny Kerr (kennykerr) merged commit 820fed5 into master Jul 29, 2020
@kennykerr
Kenny Kerr (kennykerr) deleted the dunhor/vector-of-bool branch July 29, 2020 19:15
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.

2 participants