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

Remove misleading comments about ABI compatibility for nostd::span #1731

Merged
merged 1 commit into from
Nov 4, 2022

Conversation

marcalff
Copy link
Member

@marcalff marcalff commented Nov 2, 2022

Fixes #1705

Changes

Remove misleading comments about ABI compatibility for nostd::span

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

@marcalff marcalff requested a review from a team November 2, 2022 23:29
@@ -240,9 +240,6 @@ class span<T, dynamic_extent>
T *end() const noexcept { return data_ + extent_; }

private:
// Note: matches libstdc++'s layout for std::span
Copy link
Contributor

Choose a reason for hiding this comment

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

But it seems the definition here does provide the ABI compatibility as libc++, do you mean this is unnecessary?

Copy link
Member Author

@marcalff marcalff Nov 2, 2022

Choose a reason for hiding this comment

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

It was compatible with one version of libc++ at one point, but the library implementation changed other time.

We can't guarantee ABI compatibility with a moving target, so we should not claim or hint it is compatible.

@codecov
Copy link

codecov bot commented Nov 2, 2022

Codecov Report

Merging #1731 (f476193) into main (ac179dd) will increase coverage by 0.02%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1731      +/-   ##
==========================================
+ Coverage   85.77%   85.79%   +0.02%     
==========================================
  Files         171      171              
  Lines        5212     5212              
==========================================
+ Hits         4470     4471       +1     
+ Misses        742      741       -1     
Impacted Files Coverage Δ
api/include/opentelemetry/nostd/span.h 90.00% <ø> (ø)
sdk/src/trace/batch_span_processor.cc 91.41% <0.00%> (+0.79%) ⬆️

@lalitb lalitb merged commit 7812651 into open-telemetry:main Nov 4, 2022
yxue pushed a commit to yxue/opentelemetry-cpp that referenced this pull request Dec 5, 2022
@marcalff marcalff deleted the fix_abi_comment_1705 branch July 4, 2023 07:17
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.

libstdc++ span not ABI compatible with nostd::span since GCC 11
4 participants