Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: un-qualify Range::value_type for compatibility with fmt v11
`folly::StringPiece` no longer works with fmt v11 due to `value_type` being `const char` instead of the `char` expected by fmt. Looking at `std::span`, which is probably the closest equivalent to `folly::Range`, `value_type` is defined as `std::remove_cv_t<T>`, so I think it would make sense for `folly::Range` to define `value_type` similarly, i.e. without cv-qualification. This change removes cv-qualifiers from `value_type` and replaces the the use of `value_type&` by `reference` and `const value_type&` by the newly introduced `const_reference`.
- Loading branch information