-
Notifications
You must be signed in to change notification settings - Fork 85
Open
Labels
topic: codeRelated to content of the project itselfRelated to content of the project itself
Description
This library defines some constants in the global namespace, such as the following ones:
ArduinoIoTCloud/src/ArduinoIoTCloud.h
Lines 51 to 56 in 451d57d
| typedef enum | |
| { | |
| READ = 0x01, | |
| WRITE = 0x02, | |
| READWRITE = READ | WRITE | |
| } permissionType; |
This generates errors whenever they are also defined by other libraries, preventing their coexistence. For instance, the ArduinoBLE library defines both (not anymore, constants were renamed in ArduinoBLE) and in general it is very likely to find constants named like this.READ and WRITE
It would be nice to avoid polluting the global namespace, obviously in a retrocompatible way...
Additional context
Additional reports
Metadata
Metadata
Assignees
Labels
topic: codeRelated to content of the project itselfRelated to content of the project itself