Skip to content

MethodDef::Params() should return a pair of iterators#244

Merged
kennykerr merged 4 commits into
microsoft:masterfrom
oldnewthing:params
Mar 25, 2019
Merged

MethodDef::Params() should return a pair of iterators#244
kennykerr merged 4 commits into
microsoft:masterfrom
oldnewthing:params

Conversation

@oldnewthing

@oldnewthing oldnewthing commented Mar 24, 2019

Copy link
Copy Markdown
Member

Most collection methods return a pair of iterators, but MethodDef::Params() returns a const vector.

Fix to make it act like the others for consistency. Otherwise, consumers have to write a range specialization for this one case.

…tors

All collection methods return a pair of iterators, with the
exception of `MethodDef::Params()`. Make it act like all the
others for consistency. Otherwise, consumers have to write a
range specialization just for this one case.
@oldnewthing

oldnewthing commented Mar 24, 2019

Copy link
Copy Markdown
Member Author

CustomAttributeSig::FixedArgs and NamedArgs also return a const vector, but there are consumers that really expect it to be a vector, so I can't fix those.

@oldnewthing oldnewthing reopened this Mar 24, 2019
@kennykerr kennykerr merged commit 172045e into microsoft:master Mar 25, 2019
@oldnewthing oldnewthing deleted the params branch March 25, 2019 18:26
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.

4 participants