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

Switch to C++17 on all platforms #2066

Closed
5 tasks done
elBoberido opened this issue Oct 26, 2023 · 0 comments · Fixed by #2096 or #2103
Closed
5 tasks done

Switch to C++17 on all platforms #2066

elBoberido opened this issue Oct 26, 2023 · 0 comments · Fixed by #2096 or #2103
Assignees
Labels
enhancement New feature

Comments

@elBoberido
Copy link
Member

elBoberido commented Oct 26, 2023

Brief feature description

C++23 was released earlier this year. We switched to C++14 around three years ago. Time to move to C++17.

Detailed information

C++17 has some nice features like:

  • structured bindings
    • e.g auto [bar, baz] = foo();
  • new attributes
    • fallthrough, maybe_unused and nodiscard
  • more constexpr
  • initializers in if and switch
  • class template argument deduction (CTAD)
  • check if includes are available with __has_include

Tasks

  • set the ICEORYX_CXX_STANDARD to 17 on all supported platforms
  • remove the #if __cplusplus >= 201703L switches
  • deprecate superfluous macros like IOX_NO_DISCARD
  • replace iox::byte with std::byte
  • simplify the platform and remove duplicated headers by using __has_include move to Simplify platform abstraction #2107
@elBoberido elBoberido added the enhancement New feature label Oct 26, 2023
@elBoberido elBoberido self-assigned this Nov 16, 2023
elBoberido added a commit that referenced this issue Nov 16, 2023
elBoberido added a commit that referenced this issue Nov 16, 2023
elBoberido added a commit that referenced this issue Nov 16, 2023
elBoberido added a commit that referenced this issue Nov 16, 2023
elBoberido added a commit that referenced this issue Nov 16, 2023
elBoberido added a commit that referenced this issue Nov 16, 2023
elBoberido added a commit that referenced this issue Nov 17, 2023
@elBoberido elBoberido linked a pull request Nov 17, 2023 that will close this issue
22 tasks
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 17, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 17, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 17, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 17, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 17, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 17, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 17, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 17, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 17, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 18, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 18, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 18, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 18, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 18, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 18, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 18, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 18, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 18, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 20, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 20, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 20, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 20, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 20, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 20, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 20, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 20, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 20, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 20, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 20, 2023
elBoberido added a commit to elBoberido/iceoryx that referenced this issue Nov 20, 2023
elBoberido added a commit that referenced this issue Nov 20, 2023
…tches-for-C++17

iox-#2066 Remove compiler switches for c++17
@github-project-automation github-project-automation bot moved this to Done in v3.0 Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature
Projects
Status: Done
1 participant