fix: add dark::Visitor to tools & make default ctor implicit for reflection

This commit is contained in:
DarkSharpness
2024-07-11 23:20:17 +08:00
parent c62a48127e
commit 28c57b6163
3 changed files with 3 additions and 2 deletions

View File

@ -28,7 +28,7 @@ struct Register {
public: public:
static constexpr std::size_t _Bit_Len = _Len; static constexpr std::size_t _Bit_Len = _Len;
explicit Register() : _M_old(), _M_new(), _M_assigned() {} Register() : _M_old(), _M_new(), _M_assigned() {}
Register(Register &&) = delete; Register(Register &&) = delete;
Register(const Register &) = delete; Register(const Register &) = delete;

View File

@ -15,3 +15,4 @@ using dark::Register;
using dark::SyncTags; using dark::SyncTags;
using dark::sync_member; using dark::sync_member;
using dark::Visitor;

View File

@ -75,7 +75,7 @@ struct Wire {
public: public:
static constexpr std::size_t _Bit_Len = _Len; static constexpr std::size_t _Bit_Len = _Len;
explicit Wire() : Wire() :
_M_func(new details::EmptyWire), _M_func(new details::EmptyWire),
_M_cache(), _M_holds(), _M_assigned() {} _M_cache(), _M_holds(), _M_assigned() {}