r-lib / later

Schedule an R function or formula to run after a specified period of time.
https://r-lib.github.io/later
Other
137 stars 27 forks source link

avoid duplicate names in scope #164

Closed MichaelChirico closed 2 years ago

MichaelChirico commented 2 years ago

Flagged by -Wshadow.

cbSet::const_iterator it
std::vector<std::shared_ptr<CallbackRegistry> >::const_iterator it

two iterators with the same name in nearby scopes makes it a bit harder to decide which is which. Simply renamed the first one for clarity.