diff --git a/wpilibc/src/main/native/include/frc/Alert.h b/wpilibc/src/main/native/include/frc/Alert.h index 11adb80b640..b4f9f0af001 100644 --- a/wpilibc/src/main/native/include/frc/Alert.h +++ b/wpilibc/src/main/native/include/frc/Alert.h @@ -169,7 +169,7 @@ class Alert { static SendableAlerts& GetGroupSendable(std::string_view group); }; -constexpr std::string_view format_as(Alert::AlertType type) { +inline std::string format_as(Alert::AlertType type) { switch (type) { case Alert::AlertType::kInfo: return "kInfo";