| 1 | diff --git a/sdk/include/opentelemetry/sdk/common/custom_hash_equality.h b/sdk/include/opentelemetry/sdk/common/custom_hash_equality.h
|
| 2 | index d1b5555b..b529c92a 100644
|
| 3 | |
| 4 | |
| 5 | @@ -144,13 +144,7 @@ struct StringViewEqual
|
| 6 | template <typename MapType>
|
| 7 | inline auto find_heterogeneous(MapType &&map, opentelemetry::nostd::string_view key)
|
| 8 | {
|
| 9 | -#if defined(_LIBCPP_VERSION) || \
|
| 10 | - (!defined(OPENTELEMETRY_STL_VERSION) || OPENTELEMETRY_STL_VERSION < 2020)
|
| 11 | return map.find(std::string(key));
|
| 12 | -#else
|
| 13 | - // libstdc++ + C++20: heterogeneous lookup works
|
| 14 | - return map.find(key);
|
| 15 | -#endif
|
| 16 | }
|
| 17 | } // namespace common
|
| 18 | } // namespace sdk
|