We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c11051 commit 84bee6fCopy full SHA for 84bee6f
libraries/EEPROM/src/EEPROM.h
@@ -38,7 +38,7 @@ struct EERef{
38
39
//Access/read members.
40
uint8_t operator*() const { return eeprom_read_byte( /*(uint8_t*)*/ index ); }
41
- operator const uint8_t() const { return **this; }
+ operator uint8_t() const { return **this; }
42
43
//Assignment/write members.
44
EERef &operator=( const EERef &ref ) { return *this = *ref; }
@@ -87,7 +87,7 @@ struct EEPtr{
87
EEPtr( const int index )
88
: index( index ) {}
89
90
- operator const int() const { return index; }
+ operator int() const { return index; }
91
EEPtr &operator=( int in ) { return index = in, *this; }
92
93
//Iterator functionality.
0 commit comments