I cannot find anything (that makes sense to me) about the error I receive.
char s; //For text //Read string from Windows Form app. serial.scanf("%s", &s); int length = strlen(s); //Remove the first three characters from the string received string s2 = string(s).substr(3, length - 3); //Something wrong with substr()? //Test results are what I expected serial.printf("s: %s Length: %d \r\n", s, len); //OK serial.printf("part: %s \r\n", s2); //OK
I received the error when using substr()
I do not mean that Something is wrong with substr()… Only on how I am using it…
Warning: Non-POD class type passed through ellipsis in “main.cpp”, Line: 145, Col: 45
What in the code above is the non C compatible type?
The app compiles and runs OK.