diff --git a/wpilibc/src/main/native/cpp/Watchdog.cpp b/wpilibc/src/main/native/cpp/Watchdog.cpp index 2180d0df3c..35858b851f 100644 --- a/wpilibc/src/main/native/cpp/Watchdog.cpp +++ b/wpilibc/src/main/native/cpp/Watchdog.cpp @@ -220,7 +220,7 @@ void Watchdog::SuppressTimeoutMessage(bool suppress) { m_suppressTimeoutMessage = suppress; } -bool Watchdog::operator>(const Watchdog& rhs) { +bool Watchdog::operator>(const Watchdog& rhs) const { return m_expirationTime > rhs.m_expirationTime; } diff --git a/wpilibc/src/main/native/include/frc/Watchdog.h b/wpilibc/src/main/native/include/frc/Watchdog.h index 7e0caba8e5..6fc3793147 100644 --- a/wpilibc/src/main/native/include/frc/Watchdog.h +++ b/wpilibc/src/main/native/include/frc/Watchdog.h @@ -162,7 +162,7 @@ class Watchdog { class Impl; Impl* m_impl; - bool operator>(const Watchdog& rhs); + bool operator>(const Watchdog& rhs) const; static Impl* GetImpl(); };