mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
[wpilib] Deprecate getInstance() in favor of static functions (#3440)
Co-authored-by: Noam Zaks <imnoamzaks@gmail.com>
This commit is contained in:
@@ -215,15 +215,11 @@ class RobotBase {
|
||||
*/
|
||||
RobotBase();
|
||||
|
||||
virtual ~RobotBase();
|
||||
virtual ~RobotBase() = default;
|
||||
|
||||
protected:
|
||||
// m_ds isn't moved in these because DriverStation is a singleton; every
|
||||
// instance of RobotBase has a reference to the same object.
|
||||
RobotBase(RobotBase&&) noexcept;
|
||||
RobotBase& operator=(RobotBase&&) noexcept;
|
||||
|
||||
DriverStation& m_ds;
|
||||
RobotBase(RobotBase&&) = default;
|
||||
RobotBase& operator=(RobotBase&&) = default;
|
||||
|
||||
static std::thread::id m_threadId;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user