-
Notifications
You must be signed in to change notification settings - Fork 5
/
telegram-desktop-4.3.1-e2k.patch
469 lines (445 loc) · 19.5 KB
/
telegram-desktop-4.3.1-e2k.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
From 60880454995579767f97d81a0c859e860d2317f2 Mon Sep 17 00:00:00 2001
From: Ilya Kurdyukov <[email protected]>
Date: Mon, 27 Mar 2023 00:16:29 +0700
Subject: [PATCH] telegram-desktop-4.3.1 e2k support
Using LCC 1.26.16, there is no <compare> header in this version, it can be taken from GCC.
---
.../chat_helpers/stickers_emoji_pack.cpp | 4 ++
.../data/data_download_manager.cpp | 4 ++
.../Telegram/SourceFiles/data/data_peer_id.h | 4 ++
.../linux/notifications_manager_linux.cpp | 5 +++
.../range-v3/include/concepts/swap.hpp | 4 ++
.../include/range/v3/detail/adl_get.hpp | 4 ++
.../include/range/v3/detail/config.hpp | 2 +-
.../include/range/v3/iterator/concepts.hpp | 4 ++
.../include/range/v3/range/access.hpp | 8 ++++
.../include/range/v3/view/adaptor.hpp | 4 ++
.../range-v3/include/range/v3/view/concat.hpp | 38 +++++++++++++++++++
.../include/range/v3/view/zip_with.hpp | 4 ++
.../platform/linux/base_last_input_linux.cpp | 4 +-
.../linux/base_linux_dbus_utilities.cpp | 2 +-
.../Telegram/lib_base/base/qt/qt_compare.h | 4 ++
tdesktop/Telegram/lib_base/base/weak_ptr.h | 4 ++
.../crl/common/crl_common_object_async.h | 3 +-
tdesktop/Telegram/lib_rpl/rpl/event_stream.h | 2 +-
.../Telegram/lib_ui/ui/image/image_prepare.h | 8 ++++
19 files changed, 106 insertions(+), 6 deletions(-)
diff --git a/tdesktop/Telegram/SourceFiles/chat_helpers/stickers_emoji_pack.cpp b/tdesktop/Telegram/SourceFiles/chat_helpers/stickers_emoji_pack.cpp
index b56b700..65dd2d3 100644
--- a/tdesktop/Telegram/SourceFiles/chat_helpers/stickers_emoji_pack.cpp
+++ b/tdesktop/Telegram/SourceFiles/chat_helpers/stickers_emoji_pack.cpp
@@ -234,7 +234,11 @@ EmojiPtr EmojiPack::chooseInteractionEmoji(
return original;
}
}
+#ifdef __EDG__
+ const auto kHearts = {
+#else
static const auto kHearts = {
+#endif
QString::fromUtf8("\xf0\x9f\x92\x9b"),
QString::fromUtf8("\xf0\x9f\x92\x99"),
QString::fromUtf8("\xf0\x9f\x92\x9a"),
diff --git a/tdesktop/Telegram/SourceFiles/data/data_download_manager.cpp b/tdesktop/Telegram/SourceFiles/data/data_download_manager.cpp
index e5861c4..ac4c12e 100644
--- a/tdesktop/Telegram/SourceFiles/data/data_download_manager.cpp
+++ b/tdesktop/Telegram/SourceFiles/data/data_download_manager.cpp
@@ -1124,7 +1124,11 @@ rpl::producer<Ui::DownloadBarContent> MakeDownloadBarContent() {
const auto notify = [=, &manager] {
auto content = Ui::DownloadBarContent();
auto single = (const Data::DownloadObject*) nullptr;
+#ifdef __EDG__
+ for (const Data::DownloadingId *id : manager.loadingList()) {
+#else
for (const auto id : manager.loadingList()) {
+#endif
if (id->hiddenByView) {
break;
}
diff --git a/tdesktop/Telegram/SourceFiles/data/data_peer_id.h b/tdesktop/Telegram/SourceFiles/data/data_peer_id.h
index 1f99d95..e338263 100644
--- a/tdesktop/Telegram/SourceFiles/data/data_peer_id.h
+++ b/tdesktop/Telegram/SourceFiles/data/data_peer_id.h
@@ -29,9 +29,13 @@ struct ChatIdType {
constexpr ChatIdType(MTPlong value) noexcept : bare(value.v) {
}
+#ifdef __EDG__
+ auto operator<=>(const ChatIdType&) const = default;
+#else
friend inline constexpr auto operator<=>(
ChatIdType,
ChatIdType) = default;
+#endif
[[nodiscard]] constexpr explicit operator bool() const noexcept {
return (bare != 0);
diff --git a/tdesktop/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp b/tdesktop/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp
index 1d96b11..d09d895 100644
--- a/tdesktop/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp
+++ b/tdesktop/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp
@@ -26,6 +26,11 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <glibmm.h>
#include <giomm.h>
+#ifdef __EDG__
+inline bool operator==(const Glib::ustring &lhs, const Glib::ustring &rhs) {
+ return lhs.compare(rhs) == 0;
+}
+#endif
namespace Platform {
namespace Notifications {
diff --git a/tdesktop/Telegram/ThirdParty/range-v3/include/concepts/swap.hpp b/tdesktop/Telegram/ThirdParty/range-v3/include/concepts/swap.hpp
index dd70864..6361d41 100644
--- a/tdesktop/Telegram/ThirdParty/range-v3/include/concepts/swap.hpp
+++ b/tdesktop/Telegram/ThirdParty/range-v3/include/concepts/swap.hpp
@@ -183,7 +183,11 @@ namespace concepts
template<typename T, typename U = T>
CPP_INLINE_VAR constexpr bool is_adl_swappable_v =
+#ifdef __EDG__
+ false; /* somehow broken with std::thread */
+#else
!META_IS_SAME(decltype(adl_swap_detail::try_adl_swap_<T, U>(42)), nope);
+#endif
struct swap_fn
{
diff --git a/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/detail/adl_get.hpp b/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/detail/adl_get.hpp
index c1d9953..a1ca0a2 100644
--- a/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/detail/adl_get.hpp
+++ b/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/detail/adl_get.hpp
@@ -99,6 +99,7 @@ namespace ranges
(
return detail::adl_get<I>(static_cast<U const &>(wb))
)
+#ifndef __EDG__
template<std::size_t I, typename U = TupleLike>
friend constexpr auto CPP_auto_fun(get)(
forward_tuple_interface<TupleLike> &&wb)
@@ -111,6 +112,7 @@ namespace ranges
(
return detail::adl_get<I>(static_cast<U const &&>(wb))
)
+#endif
template<typename T, typename U = TupleLike>
friend constexpr auto CPP_auto_fun(get)(
forward_tuple_interface<TupleLike> &wb)
@@ -123,6 +125,7 @@ namespace ranges
(
return detail::adl_get<T>(static_cast<U const &>(wb))
)
+#ifndef __EDG__
template<typename T, typename U = TupleLike>
friend constexpr auto CPP_auto_fun(get)(
forward_tuple_interface<TupleLike> &&wb)
@@ -135,6 +138,7 @@ namespace ranges
(
return detail::adl_get<T>(static_cast<U const &&>(wb))
)
+#endif
// clang-format on
};
} // namespace _tuple_wrapper_
diff --git a/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/detail/config.hpp b/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/detail/config.hpp
index 069bb3e..f7316b8 100644
--- a/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/detail/config.hpp
+++ b/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/detail/config.hpp
@@ -731,7 +731,7 @@ namespace ranges
#endif // RANGES_CONSTEXPR_IF
#if !defined(RANGES_BROKEN_CPO_LOOKUP) && !defined(RANGES_DOXYGEN_INVOKED) && \
- (defined(RANGES_WORKAROUND_GCC_UNFILED0) || defined(RANGES_WORKAROUND_MSVC_895622))
+ (defined(RANGES_WORKAROUND_GCC_UNFILED0) || defined(RANGES_WORKAROUND_MSVC_895622) || defined(__EDG__))
#define RANGES_BROKEN_CPO_LOOKUP 1
#endif
#ifndef RANGES_BROKEN_CPO_LOOKUP
diff --git a/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/iterator/concepts.hpp b/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/iterator/concepts.hpp
index e938be3..dce6bde 100644
--- a/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/iterator/concepts.hpp
+++ b/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/iterator/concepts.hpp
@@ -293,8 +293,12 @@ namespace ranges
(
s - i,
i - s,
+#ifdef __EDG__
+ true /* doesn't work with QList */
+#else
concepts::requires_<same_as<iter_difference_t<I>, decltype(s - i)>>,
concepts::requires_<same_as<iter_difference_t<I>, decltype(i - s)>>
+#endif
));
template(typename S, typename I)(
concept (sized_sentinel_for_)(S, I),
diff --git a/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/range/access.hpp b/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/range/access.hpp
index ca6eb6f..2d54e47 100644
--- a/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/range/access.hpp
+++ b/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/range/access.hpp
@@ -122,7 +122,11 @@ namespace ranges
struct _non_member_result_
{
template<typename R>
+#ifdef __EDG__
+ using invoke = decltype(detail::_decay_copy((declval(R &))));
+#else
using invoke = decltype(detail::_decay_copy(begin(declval(R &))));
+#endif
};
template<typename R>
@@ -229,7 +233,11 @@ namespace ranges
struct _non_member_result_
{
template<typename R>
+#ifdef __EDG__
+ using invoke = decltype(detail::_decay_copy((declval(R &))));
+#else
using invoke = decltype(detail::_decay_copy(end(declval(R &))));
+#endif
};
template<typename R>
diff --git a/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/view/adaptor.hpp b/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/view/adaptor.hpp
index 0297d7f..a3151d3 100644
--- a/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/view/adaptor.hpp
+++ b/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/view/adaptor.hpp
@@ -556,7 +556,11 @@ namespace ranges
return view_adaptor::end_cursor_(derived());
}
+#ifdef __EDG__
+ public:
+#else
protected:
+#endif
~view_adaptor() = default;
public:
diff --git a/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/view/concat.hpp b/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/view/concat.hpp
index 0e6caf5..91bd9bb 100644
--- a/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/view/concat.hpp
+++ b/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/view/concat.hpp
@@ -118,9 +118,15 @@ namespace ranges
void satisfy(meta::size_t<N>)
{
RANGES_EXPECT(its_.index() == N);
+#ifdef __EDG__
+ if(ranges::get<N>(its_) == ranges::end(std::get<N>(rng_->rngs_)))
+ {
+ ranges::emplace<N + 1>(its_, ranges::begin(std::get<N + 1>(rng_->rngs_)));
+#else
if(ranges::get<N>(its_) == end(std::get<N>(rng_->rngs_)))
{
ranges::emplace<N + 1>(its_, begin(std::get<N + 1>(rng_->rngs_)));
+#endif
this->satisfy(meta::size_t<N + 1>{});
}
}
@@ -136,7 +142,11 @@ namespace ranges
requires input_iterator<I>)
void operator()(indexed_element<I, N> it) const
{
+#ifdef __EDG__
+ RANGES_ASSERT(it.get() != ranges::end(std::get<N>(pos->rng_->rngs_)));
+#else
RANGES_ASSERT(it.get() != end(std::get<N>(pos->rng_->rngs_)));
+#endif
++it.get();
pos->satisfy(meta::size_t<N>{});
}
@@ -149,7 +159,11 @@ namespace ranges
requires bidirectional_iterator<I>)
void operator()(indexed_element<I, 0> it) const
{
+#ifdef __EDG__
+ RANGES_ASSERT(it.get() != ranges::begin(std::get<0>(pos->rng_->rngs_)));
+#else
RANGES_ASSERT(it.get() != begin(std::get<0>(pos->rng_->rngs_)));
+#endif
--it.get();
}
template(typename I, std::size_t N)(
@@ -157,7 +171,11 @@ namespace ranges
requires (N != 0) AND bidirectional_iterator<I>)
void operator()(indexed_element<I, N> it) const
{
+#ifdef __EDG__
+ if(it.get() == ranges::begin(std::get<N>(pos->rng_->rngs_)))
+#else
if(it.get() == begin(std::get<N>(pos->rng_->rngs_)))
+#endif
{
auto && rng = std::get<N - 1>(pos->rng_->rngs_);
ranges::emplace<N - 1>(
@@ -247,14 +265,22 @@ namespace ranges
return distance(ranges::get<N>(from.its_),
ranges::get<N>(to.its_));
return distance(ranges::get<N>(from.its_),
+#ifdef __EDG__
+ ranges::end(std::get<N>(from.rng_->rngs_))) +
+#else
end(std::get<N>(from.rng_->rngs_))) +
+#endif
cursor::distance_to_(meta::size_t<N + 1>{}, from, to);
}
if(from.its_.index() < N && to.its_.index() > N)
return distance(std::get<N>(from.rng_->rngs_)) +
cursor::distance_to_(meta::size_t<N + 1>{}, from, to);
RANGES_EXPECT(to.its_.index() == N);
+#ifdef __EDG__
+ return distance(ranges::begin(std::get<N>(from.rng_->rngs_)),
+#else
return distance(begin(std::get<N>(from.rng_->rngs_)),
+#endif
ranges::get<N>(to.its_));
}
@@ -265,13 +291,21 @@ namespace ranges
cursor() = default;
cursor(concat_view_t * rng, begin_tag)
: rng_(rng)
+#ifdef __EDG__
+ , its_{emplaced_index<0>, ranges::begin(std::get<0>(rng->rngs_))}
+#else
, its_{emplaced_index<0>, begin(std::get<0>(rng->rngs_))}
+#endif
{
this->satisfy(meta::size_t<0>{});
}
cursor(concat_view_t * rng, end_tag)
: rng_(rng)
+#ifdef __EDG__
+ , its_{emplaced_index<cranges - 1>, ranges::end(std::get<cranges - 1>(rng->rngs_))}
+#else
, its_{emplaced_index<cranges - 1>, end(std::get<cranges - 1>(rng->rngs_))}
+#endif
{}
template(bool Other)(
/// \pre
@@ -294,8 +328,12 @@ namespace ranges
auto equal(cursor const & pos) const //
-> CPP_ret(bool)(
/// \pre
+#ifdef __EDG__
+ )
+#else
requires //
equality_comparable<variant<iterator_t<constify_if<Rngs>>...>>)
+#endif
{
return its_ == pos.its_;
}
diff --git a/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/view/zip_with.hpp b/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/view/zip_with.hpp
index 699f423..5c33fbb 100644
--- a/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/view/zip_with.hpp
+++ b/tdesktop/Telegram/ThirdParty/range-v3/include/range/v3/view/zip_with.hpp
@@ -123,7 +123,11 @@ namespace ranges
using zip_cardinality = std::integral_constant<
cardinality,
State::value >= 0 && Value::value >= 0
+#ifdef __EDG__
+ ? State::value < Value::value ? State::value : Value::value
+#else
? min_(State::value, Value::value)
+#endif
: State::value >=0 && Value::value == infinite
? State::value
: State::value == infinite && Value::value >= 0
diff --git a/tdesktop/Telegram/lib_base/base/platform/linux/base_last_input_linux.cpp b/tdesktop/Telegram/lib_base/base/platform/linux/base_last_input_linux.cpp
index ef5529e..d69f544 100644
--- a/tdesktop/Telegram/lib_base/base/platform/linux/base_last_input_linux.cpp
+++ b/tdesktop/Telegram/lib_base/base/platform/linux/base_last_input_linux.cpp
@@ -103,7 +103,7 @@ std::optional<crl::time> FreedesktopDBusLastUserInputTime() {
"org.freedesktop.DBus.Error.AccessDenied",
};
- const auto errorName = Gio::DBus::ErrorUtils::get_remote_error(e);
+ const auto errorName = Gio::DBus::ErrorUtils::get_remote_error(e).c_str();
if (ranges::contains(NotSupportedErrors, errorName)) {
NotSupported = true;
return std::nullopt;
@@ -163,7 +163,7 @@ std::optional<crl::time> MutterDBusLastUserInputTime() {
"org.freedesktop.DBus.Error.AccessDenied",
};
- const auto errorName = Gio::DBus::ErrorUtils::get_remote_error(e);
+ const auto errorName = Gio::DBus::ErrorUtils::get_remote_error(e).c_str();
if (ranges::contains(NotSupportedErrors, errorName)) {
NotSupported = true;
return std::nullopt;
diff --git a/tdesktop/Telegram/lib_base/base/platform/linux/base_linux_dbus_utilities.cpp b/tdesktop/Telegram/lib_base/base/platform/linux/base_linux_dbus_utilities.cpp
index b43f2d2..db58ac1 100644
--- a/tdesktop/Telegram/lib_base/base/platform/linux/base_linux_dbus_utilities.cpp
+++ b/tdesktop/Telegram/lib_base/base/platform/linux/base_linux_dbus_utilities.cpp
@@ -92,7 +92,7 @@ uint RegisterServiceWatcher(
const auto newOwner = GlibVariantCast<Glib::ustring>(
parameters.get_child(2));
- if (name != service) {
+ if (name.compare(service) != 0) {
return;
}
diff --git a/tdesktop/Telegram/lib_base/base/qt/qt_compare.h b/tdesktop/Telegram/lib_base/base/qt/qt_compare.h
index 5b205d9..e3cdc32 100644
--- a/tdesktop/Telegram/lib_base/base/qt/qt_compare.h
+++ b/tdesktop/Telegram/lib_base/base/qt/qt_compare.h
@@ -14,7 +14,11 @@
#if !defined(__apple_build_version__) || (__apple_build_version__ > 12000032)
template <typename P>
+#ifdef __EDG__
+[[nodiscard]] constexpr inline std::strong_ordering operator<=>(
+#else
[[nodiscard]] inline std::strong_ordering operator<=>(
+#endif
const gsl::not_null<P> &a,
const gsl::not_null<P> &b) noexcept {
return a.get() <=> b.get();
diff --git a/tdesktop/Telegram/lib_base/base/weak_ptr.h b/tdesktop/Telegram/lib_base/base/weak_ptr.h
index eee923d..b88c2db 100644
--- a/tdesktop/Telegram/lib_base/base/weak_ptr.h
+++ b/tdesktop/Telegram/lib_base/base/weak_ptr.h
@@ -221,9 +221,13 @@ public:
return get();
}
+#ifdef __EDG__
+ auto operator<=>(const weak_ptr&) const noexcept = default;
+#else
friend inline auto operator<=>(
weak_ptr,
weak_ptr) noexcept = default;
+#endif
void reset(T *value = nullptr) {
if (get() != value) {
diff --git a/tdesktop/Telegram/lib_crl/crl/common/crl_common_object_async.h b/tdesktop/Telegram/lib_crl/crl/common/crl_common_object_async.h
index 45842ea..699b40d 100644
--- a/tdesktop/Telegram/lib_crl/crl/common/crl_common_object_async.h
+++ b/tdesktop/Telegram/lib_crl/crl/common/crl_common_object_async.h
@@ -401,7 +401,8 @@ object_async<Policy, Type>::object_async(Args &&...args)
} else if constexpr (with_weak_construct) {
_data->construct(weak(), std::forward<Args>(args)...);
} else {
- static_assert(false_t(args...), "Could not find a constructor.");
+ // this code doesn't work with false_t, because it's defined as a struct in the same namespace
+ static_assert(this_code_is_garbage(args...), "Could not find a constructor.");
}
}
diff --git a/tdesktop/Telegram/lib_rpl/rpl/event_stream.h b/tdesktop/Telegram/lib_rpl/rpl/event_stream.h
index 219931f..6a1c03c 100644
--- a/tdesktop/Telegram/lib_rpl/rpl/event_stream.h
+++ b/tdesktop/Telegram/lib_rpl/rpl/event_stream.h
@@ -54,7 +54,7 @@ public:
return make_producer<Value, Error>([weak = make_weak()](
const auto &consumer) {
if (const auto strong = weak.lock()) {
- auto result = [weak, consumer] {
+ auto result = [consumer, weak] {
if (const auto strong = weak.lock()) {
const auto it = std::find(
strong->consumers.begin(),
diff --git a/tdesktop/Telegram/lib_ui/ui/image/image_prepare.h b/tdesktop/Telegram/lib_ui/ui/image/image_prepare.h
index 3ede8dc..364a316 100644
--- a/tdesktop/Telegram/lib_ui/ui/image/image_prepare.h
+++ b/tdesktop/Telegram/lib_ui/ui/image/image_prepare.h
@@ -86,7 +86,15 @@ struct CornersMaskRef {
}
friend inline constexpr bool operator==(
CornersMaskRef a,
+#ifdef __EDG__
+ CornersMaskRef b) noexcept {
+ for (auto i = 0; i != 4; ++i)
+ if (a.p[i] != b.p[i]) return false;
+ return true;
+ }
+#else
CornersMaskRef b) noexcept = default;
+#endif
};
[[nodiscard]] const std::array<QImage, 4> &CornersMask(
--
2.34.1