Add automatic deduction of address type

This commit is contained in:
BlackMark 2020-04-07 19:14:09 +02:00
parent 4f8828dbee
commit 33a4d55f03

View File

@ -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