Skip to content

add is_enum to insure that bit shifts are not mistaken for io stream operators#34

Open
lintondf wants to merge 1 commit intoChris--A:masterfrom
lintondf:enum_bug
Open

add is_enum to insure that bit shifts are not mistaken for io stream operators#34
lintondf wants to merge 1 commit intoChris--A:masterfrom
lintondf:enum_bug

Conversation

@lintondf
Copy link

The following sketch fails with the baseline PrintEx and compiles with this pull request

#include <PrintEx.h>

enum pin_t {
D0 = 0x61,
};

void setup() {
// libraries\PrintEx\src/lib/TypeTraits.h:239:22: error: base type 'pin_t' fails to be a struct or class type
int reg = D0 >> 4;
}

void loop() {
// put your main code here, to run repeatedly:

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant