google / cctz

CCTZ is a C++ library for translating between absolute and civil times using the rules of a time zone.
Apache License 2.0
597 stars 166 forks source link

Revert "Use reference in range-for with non trivial type" #295

Closed derekmauro closed 4 months ago

derekmauro commented 4 months ago

/abseil-cpp/absl/time/internal/cctz/src/time_zone_info.cc:559:27: error: loop variable 'prefix' of type 'const std::string&' {aka 'const std::__cxx11::basic_string&'} binds to a temporary constructed from type 'const char* const' [-Werror=range-loop-construct] 559 | for (const std::string& prefix : prefixes) {