Add automatic deduction of address type
This commit is contained in:
parent
4f8828dbee
commit
33a4d55f03
@ -8,7 +8,7 @@
|
||||
type EEMEM __##name; \
|
||||
constexpr auto name = &__##name
|
||||
|
||||
template <typename T, T *Address, bool Update = false>
|
||||
template <auto Address, bool Update = false, typename T = type::decay_t<decltype(*Address)>>
|
||||
class Eeprom {
|
||||
public:
|
||||
operator T() const
|
||||
|
Loading…
Reference in New Issue
Block a user