Skip to content

Commit 1d9ff73

Browse files
committed
remove c++20 in ubuntu 20.04; fixing warnings for C++20 builds
1 parent e7d4860 commit 1d9ff73

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/cppDesktop.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
os: "ubuntu-22.04"
2323
- useMsys: true
2424
os: "macos-latest"
25+
- cppStd: "c++20"
26+
os: "ubuntu-20.04"
2527
- cppStd: "c++23"
2628
os: "ubuntu-20.04"
2729
- cppStd: "c++23"

target_data/Cpp/cppDesktop/include/unit_system_20.hpp.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ namespace sakurajin{
6666
template <class scalar_t> requires std::convertible_to<scalar_t, base_type>
6767
{{ unit.name }}_t<base_type> operator*(scalar_t scalar) const {
6868
return {{ unit.name }}_t<base_type>{value * static_cast<base_type>(scalar), multiplier, offset};
69-
};
69+
}
7070

7171
template <class scalar_t> requires std::convertible_to<scalar_t, base_type>
7272
void operator*=(scalar_t scalar) { value *= static_cast<base_type>(scalar); }

0 commit comments

Comments
 (0)