various: forward declaration for "T" type used in EEPROM functions, necessary for non Arduino IDE

This commit is contained in:
Robert Neumann 2019-09-02 20:11:08 +02:00
parent d39a438c4d
commit 1d6bd2ae86

View File

@ -90,6 +90,10 @@ char ver[5] = "3.5";
// AVR Eeprom // AVR Eeprom
#include <EEPROM.h> #include <EEPROM.h>
// forward declarations for "T" (for non Arduino IDE)
template <class T> int EEPROM_writeAnything(int ee, const T& value);
template <class T> int EEPROM_readAnything(int ee, T& value);
template <class T> int EEPROM_writeAnything(int ee, const T& value) template <class T> int EEPROM_writeAnything(int ee, const T& value)
{ {
const byte* p = (const byte*)(const void*)&value; const byte* p = (const byte*)(const void*)&value;