Skip to content

[BUILD] Add missing STL header.#2107

Merged
marcalff merged 1 commit intoopen-telemetry:mainfrom
owent:fix_2106
Apr 20, 2023
Merged

[BUILD] Add missing STL header.#2107
marcalff merged 1 commit intoopen-telemetry:mainfrom
owent:fix_2106

Conversation

@owent
Copy link
Copy Markdown
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

Signed-off-by: owent <admin@owent.net>
@owent owent requested a review from a team April 20, 2023 03:34
@codecov
Copy link
Copy Markdown

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           

# include <future>
#endif

#include <functional>
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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