purduesigbots / pros

Source code for PROS kernel: open source C/C++ development for the VEX V5 microcontroller
https://pros.cs.purdue.edu
Other
259 stars 76 forks source link

✨PROS 4: Make constructors explicit #520

Closed ryan-doan closed 1 year ago

ryan-doan commented 1 year ago

Summary:

Add "explicit" to devices' constructors.

Motivation:

Prevent implicit copies and conversion of classes.

References (optional):

PROS 4: Rotation Class ctors not explicit https://github.com/purduesigbots/pros/issues/515

Test Plan:

Richard-Stump commented 1 year ago

Please switch this branch to merge to develop-pros-4 since this is a pros 4 task.