Skip to content

Commit 3bf93be

Browse files
committed
remove constexpr for defaulted operator==
* clang does not like it - should be constexpr by default
1 parent 56bb495 commit 3bf93be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tuple19.lib/tuple19/Tuple.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace details {
1717

1818
template<size_t I, class T> struct TupleEntry {
1919
T v;
20-
constexpr bool operator==(const TupleEntry&) const = default;
20+
bool operator==(const TupleEntry&) const = default;
2121
};
2222

2323
template<size_t I, class T> constexpr auto entryAt(const TupleEntry<I, T>& te) -> const T& { return te.v; }
@@ -42,7 +42,7 @@ template<class... Ts> struct Tuple {
4242
constexpr IndexedTuple(const Ts&... ts) : details::TupleEntry<Is, Ts>({ts})... {}
4343
constexpr IndexedTuple(Ts&&... ts) : details::TupleEntry<Is, Ts>({std::move(ts)})... {}
4444

45-
constexpr bool operator==(const IndexedTuple&) const = default;
45+
bool operator==(const IndexedTuple&) const = default;
4646

4747
template<class F> constexpr void visitAll(F&& f) const& {
4848
(void)((f(static_cast<const details::TupleEntry<Is, Ts>*>(this)->v), ...));
@@ -63,7 +63,7 @@ template<class... Ts> struct Tuple {
6363
constexpr Tuple(const Ts&... ts) : indexed(ts...) {}
6464
constexpr Tuple(Ts&&... ts) : indexed(std::move(ts)...) {}
6565

66-
constexpr bool operator==(const Tuple&) const = default;
66+
bool operator==(const Tuple&) const = default;
6767

6868
template<class... Os> static constexpr auto fromArgs(Os&&... os) -> Tuple {
6969
auto res = Tuple{};

0 commit comments

Comments
 (0)