Add automatic deduction of address type

This commit is contained in:
BlackMark committed 2020-04-07 19:14:09 +02:00
1 parent 4f8828dbee
commit 33a4d55f03
1 file changed
+1 -1
+1 -1
View File
@@ -8,7 +8,7 @@
type EEMEM __##name; \ type EEMEM __##name; \
constexpr auto name = &__##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 { class Eeprom {
public: public:
operator T() const operator T() const