Support for C++17 as base standard of OpenBSW #136
Replies: 4 comments 5 replies
-
|
When building the unit tests with google test, we currently get deprecation warnings from old cmake compatibility declarations. Upgrading to new google test 1.17.x requires C++17. |
Beta Was this translation helpful? Give feedback.
-
|
@rolandreichweinbmw, in my opinion supporting C++14 would be beneficial if there are (very) old toolchains used in some projects, but I get your point - let's take this discussion in our next OpenBSW meeting. Do you have in mind if any parts of OpenBSW could be simplified/dropped if we switch to C++17? |
Beta Was this translation helpful? Give feedback.
-
|
C++17 introduced improvements for meta-programing, for example constexpr if, which can substitute SFINAE, as mentioned before. This is the difference between simple, concise, self-explanatory code, OR unneeded verbosity/keywords that do not add value to the code real purpose! |
Beta Was this translation helpful? Give feedback.
-
|
Would also vote up for this, especially static constexpr inline members are nice to have.
|
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, we support C++14 as the base C++ standard in OpenBSW, and ensure in the CI that OpenBSW works in projects based on C++ 17, 20, 23.
However, we can't use any new features generally from C++17 onwards.
I propose dropping C++14 and switch to C++17 to support new features from it.
This would:
Does anyone have a requirement to still support C++14 in their projects using OpenBSW? Or can we consequently drop C++14 support?
Beta Was this translation helpful? Give feedback.
All reactions