Skip to content

Commit 2ed9520

Browse files
Fix fold expression logic issue
1 parent 42a44f9 commit 2ed9520

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

src/front_end_utils/include/utils.hxx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,15 @@ concept is_qcolor = requires(const T& t) { QColor(t); };
3838

3939
template <is_qcolor... Args>
4040
inline constexpr bool is_valid_hex_color(Args&&... args) noexcept {
41-
return (
42-
[&]() {
43-
QColor color(std::forward<Args>(args));
41+
return (... && [&]() {
42+
QColor color(std::forward<Args>(args));
4443

45-
if (!color.isValid()) {
46-
return false;
47-
}
44+
if (!color.isValid()) {
45+
return false;
46+
}
4847

49-
return true;
50-
}(),
51-
...);
48+
return true;
49+
}());
5250
}
5351

5452
using init_list = initializer_list<uint8_t>;

0 commit comments

Comments
 (0)