You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The using namespace EspSoftwareSerial; in SoftwareSerial.h pulls some symbols (like Parity and Config) into the global namespace. Because those names are by nature very generic, this leads to conflicts if the Application already uses those symbols.
I believe that using namespace should never be used in a header file for exactly that reason and in this case completely renders the EspSoftwareSerial namespace moot. no?
Is this something that can be fixed? What would be the best way to do this?
The text was updated successfully, but these errors were encountered:
The using may be to generic, it's probably best to research which types were in the global namespace before the refactoring anyway. I will look into it.
The
using namespace EspSoftwareSerial;
in SoftwareSerial.h pulls some symbols (like Parity and Config) into the global namespace. Because those names are by nature very generic, this leads to conflicts if the Application already uses those symbols.I believe that
using namespace
should never be used in a header file for exactly that reason and in this case completely renders the EspSoftwareSerial namespace moot. no?Is this something that can be fixed? What would be the best way to do this?
The text was updated successfully, but these errors were encountered: