Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUILD] Add missing STL header. #2107

Merged
merged 1 commit into from
Apr 20, 2023
Merged

Conversation

owent
Copy link
Member

@owent owent commented Apr 20, 2023

Fixes #2106

Changes

  • Add missing STL header.

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

@owent owent requested a review from a team April 20, 2023 03:34
@codecov
Copy link

codecov bot commented Apr 20, 2023

Codecov Report

Merging #2107 (adebf00) into main (82f2828) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2107   +/-   ##
=======================================
  Coverage   87.19%   87.19%           
=======================================
  Files         166      166           
  Lines        4784     4784           
=======================================
  Hits         4171     4171           
  Misses        613      613           

@@ -13,6 +13,7 @@
# include <future>
#endif

#include <functional>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering why this happens only to clang16 and libc++.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

std::function is in <functional> (https://en.cppreference.com/w/cpp/utility/functional/function).But it may be included by other headers.

Copy link
Member

@marcalff marcalff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the fix.

@marcalff marcalff merged commit 7ee86a9 into open-telemetry:main Apr 20, 2023
@owent owent deleted the fix_2106 branch April 21, 2023 09:05
@marcalff marcalff changed the title Add missing STL header. [BUILD] Add missing STL header. May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can not compile with clang 16 and libc++
3 participants