Skip to content

Commit

Permalink
Merge pull request #55 from wusatosi/C++17
Browse files Browse the repository at this point in the history
Update project to comply with C++17
  • Loading branch information
camio authored Oct 21, 2024
2 parents 10cd0a5 + f3b8d44 commit b0e3a3a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
args: ""
- description: "Dynamic default"
args: "-DBUILD_SHARED_LIBS=on"
- description: "static C++17"
args: "-DCMAKE_CXX_STANDARD=17"
- description: "static C++20"
args: "-DCMAKE_CXX_STANDARD=20"
- description: "static C++23"
Expand Down
2 changes: 1 addition & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_CXX_STANDARD": "20"
"CMAKE_CXX_STANDARD": "17"
}
},
{
Expand Down
6 changes: 1 addition & 5 deletions include/beman/exemplar/identity.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ struct __is_transparent; // not defined
struct identity {
// Returns `t`.
template <class T>
#if defined(__cpp_constexpr)
constexpr
#endif
T&&
operator()(T&& t) const noexcept {
constexpr T&& operator()(T&& t) const noexcept {
return std::forward<T>(t);
}

Expand Down

0 comments on commit b0e3a3a

Please sign in to comment.