Chris--A / PrintEx

An extension to the Arduino Print library, and much, much more...
GNU General Public License v3.0
61 stars 16 forks source link

base type '...' fails to be a struct or class type #25

Open Sod-Almighty opened 6 years ago

Sod-Almighty commented 6 years ago

Let me start by thanking you for putting the effort in to make this useful library.

That said, however, when attempting to << stream an enum to something, I get the following error:

TypeTraits.h:239:22: error: base type 'ErrorCode' fails to be a struct or class type
     struct Child : D, dummy<int> {};

ErrorCode is an enum:

enum ErrorCode : byte { SanityError = 10 };