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

igniton-common3 uses string_view with c++11 which is a feature of c++17 #239

Open
j-rivero opened this issue Aug 18, 2021 · 2 comments
Open
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@j-rivero
Copy link
Contributor

j-rivero commented Aug 18, 2021

Environment

  • OS Version: Debian Sid, GCC11
  • ign-common3 in debian, version 3.5.0

Description

Steps to reproduce

  1. Install gcc11
  2. Compile code

Not sure how we want to resolve the problem. Seems like the own gtest is using absl::string_view which maybe an alternative until we have ign-common with c++17 enabled.

@j-rivero j-rivero added the bug Something isn't working label Aug 18, 2021
@mjcarroll mjcarroll self-assigned this Aug 18, 2021
@scpeters
Copy link
Member

@traversaro
Copy link
Contributor

Seems like the own gtest is using absl::string_view which maybe an alternative until we have ign-common with c++17 enabled.

I don't know about absl::string_view in particular, but in general abseil data structures are quite a nightmare from the ABI point of view (see https://abseil.io/about/compatibility). In general abseil do not promise any kind of ABI compatibility, and even if you fix the abseil version, the ABI of the data structure can change from compilation unit to compilation unit depending on the C++ standard version used to compile that specific compilation unit (so you could get a point in which you have ignition-common compiled with c++11 and a downstream project that uses ignition-common compiled with C++17, and get runtime crashes due to the ABI incompatibilities).

@chapulina chapulina added the help wanted Extra attention is needed label Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants