Skip to content

Commit eaad8b0

Browse files
committed
Add gcc-13 to CI matrix
1 parent f4bff9b commit eaad8b0

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
- { cxx: clang++-16, std: 17, container: "clang:16" }
2525
- { cxx: clang++-16, std: 20, container: "clang:16" }
2626
- { cxx: clang++-16, std: 23, container: "clang:16" }
27+
- { cxx: g++-13, std: 14, container: "gcc:13" }
28+
- { cxx: g++-13, std: 17, container: "gcc:13" }
29+
- { cxx: g++-13, std: 20, container: "gcc:13" }
2730
- { cxx: g++-12, std: 14, container: "gcc:12" }
2831
- { cxx: g++-12, std: 17, container: "gcc:12" }
2932
- { cxx: g++-12, std: 20, container: "gcc:12" }
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#ifndef STRONG_TYPE_STRONG_ORDERING_HPP
2+
#define STRONG_TYPE_STRONG_ORDERING_HPP
3+
4+
#include <compare>
5+
6+
#include "type.hpp"
7+
8+
namespace strong
9+
{
10+
struct strong_ordering
11+
{
12+
template <typename T>
13+
class modifier;
14+
};
15+
16+
template <typename T, typename Tag, typename ... M>
17+
class strong_ordering::modifier<::strong::type<T, Tag, M...>>
18+
{
19+
using type = ::strong::type<T, Tag, M...>;
20+
public:
21+
STRONG_NODISCARD
22+
friend
23+
STRONG_CONSTEXPR
24+
std::strong_ordering operator<=>(const type& lh, const type& rh) noexcept
25+
{
26+
return value_of(lh) <=> alue_of(rh);
27+
}
28+
};
29+
}
30+
31+
#endif //STRONG_TYPE_STRONG_ORDERING_HPP

0 commit comments

Comments
 (0)