Skip to content

Commit 98543fc

Browse files
fix
1 parent 0a81688 commit 98543fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/include/opentelemetry/sdk/metrics/view/attributes_processor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ template <typename MapType>
138138
inline auto find_hetero(MapType &&map, opentelemetry::nostd::string_view key)
139139
{
140140
#if defined(_LIBCPP_VERSION) || \
141-
(defined(OPENTELEMETRY_STL_VERSION) && OPENTELEMETRY_STL_VERSION < 2020)
141+
(!defined(OPENTELEMETRY_STL_VERSION) || OPENTELEMETRY_STL_VERSION < 2020)
142142
return map.find(std::string(key));
143143
#else
144144
// libstdc++ + C++20: heterogeneous lookup works

0 commit comments

Comments
 (0)