1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-08-05 08:26:28 +00:00

Make style improvements.

This commit is contained in:
Thomas Harte
2025-03-27 18:07:52 -04:00
parent db26a26926
commit cfba8aeb89

View File

@@ -53,8 +53,8 @@ template <typename IntT> struct Accessor<IntT, AccessType::PreauthorisedRead> {
template <typename IntT>
class Writeable {
public:
Writeable(IntT &target) : target_(target) {}
IntT operator=(IntT value) { return target_ = value; }
constexpr Writeable(IntT &target) noexcept : target_(target) {}
IntT operator=(const IntT value) { return target_ = value; }
private:
IntT &target_;
};