From 3a9cb839c30499f1e8691f0700b731f34cc7d0c4 Mon Sep 17 00:00:00 2001 From: Ryan Blue Date: Fri, 1 Nov 2024 02:15:21 -0400 Subject: [PATCH] Fix format_as --- wpilibc/src/main/native/include/frc/Alert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";