Could modify the class version I posted with this enum.
enum{
length = len,
size = sizeof( T ) * len
};
//Then code like this would work.
Serial.println( a );
Serial.println( a.length );
Serial.println( a.size );
Could modify the class version I posted with this enum.
enum{
length = len,
size = sizeof( T ) * len
};
//Then code like this would work.
Serial.println( a );
Serial.println( a.length );
Serial.println( a.size );