Fix warnings
Summary:
`-Wrange-loop-analysis` complains about the unnecessary copy.
```
In file included from servicerouter/common/InstanceCount.h:9:
folly/experimental/SingletonRelaxedCounter.h:77:21: error: loop variable 'kvp' of type 'const std::pair<std::atomic<long> *const, unsigned long>' creates a copy from type 'const std::pair<std::atomic<long> *const
, unsigned long>' [-Werror,-Wrange-loop-analysis]
for (auto const kvp : tracking->locals) {
...
folly/experimental/SingletonRelaxedCounter.h:77:10: note: use reference type 'const std::pair<std::atomic<long> *const, unsigned long> &' to prevent copying
for (auto const kvp : tracking->locals) {
```
Reviewed By: stepancheg
Differential Revision: D19554423
fbshipit-source-id: 742dd4e7d144dd2dd0c888236b85f222373e9e54
Showing
Please register or sign in to comment