google / googletest

GoogleTest - Google Testing and Mocking Framework
https://google.github.io/googletest/
BSD 3-Clause "New" or "Revised" License
33.78k stars 10k forks source link

Deduce value type in container matchers #4376

Closed m-pilia closed 9 months ago

m-pilia commented 9 months ago

Avoid directly using the member value_type of a container, and deduce the value type from the iterator instead (using std::iterator_traits). This allows to use container matchers on containers that do not expose their value type as a member type.

Resolves #4375

dinord commented 9 months ago

Closing since we closed #4375, see explanation there.