Skip to content

Commit bfe05c8

Browse files
[linalg] Silence clang-tidy warning in proxy_reference
1 parent a24650f commit bfe05c8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

include/etl/_linalg/proxy_reference.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct proxy_reference : proxy_reference_base {
1616
using value_type = Value;
1717
using derived_type = Derived;
1818

19-
constexpr explicit proxy_reference(Reference reference)
19+
constexpr explicit proxy_reference(Reference reference) // NOLINT(bugprone-crtp-constructor-accessibility)
2020
: _reference(reference)
2121
{
2222
}

tests/linalg/concepts.t.cpp

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ struct Complex {
1414

1515
[[maybe_unused]] static auto real(Complex c) -> float { return c.real; }
1616
[[maybe_unused]] static auto imag(Complex c) -> float { return c.imag; }
17-
[[maybe_unused]] static auto conj(Complex c) -> Complex { return {real(c), -imag(c)}; }
17+
[[maybe_unused]] static auto conj(Complex c) -> Complex
18+
{
19+
return {
20+
.real = real(c),
21+
.imag = -imag(c),
22+
};
23+
}
1824

1925
struct String { };
2026

0 commit comments

Comments
 (0)