Upgrade WPILib and upgraded compilers to C++17
I haven't touched the CTRE libraries yet, although they may need to be
upgraded as well.
Note that this change makes it so that you need either Ubuntu 18.04 or
later or debian buster or later in order to build the code (you may be
able to build code for the roborio on older operating systems, but
running the tests will not work normally).
Change-Id: I0cfa37fe37f830edde6d305e1f50414c369098e4
diff --git a/aos/json_to_flatbuffer.h b/aos/json_to_flatbuffer.h
index 183e6b2..94b982a 100644
--- a/aos/json_to_flatbuffer.h
+++ b/aos/json_to_flatbuffer.h
@@ -3,8 +3,8 @@
#include <cstddef>
#include <string>
+#include <string_view>
-#include "absl/strings/string_view.h"
#include "aos/flatbuffers.h"
#include "flatbuffers/flatbuffers.h"
@@ -12,7 +12,8 @@
// Parses the flatbuffer into the vector, or returns an empty vector.
flatbuffers::DetachedBuffer JsonToFlatbuffer(
- const absl::string_view data, const flatbuffers::TypeTable *typetable);
+ const std::string_view data,
+ const flatbuffers::TypeTable *typetable);
// Converts a flatbuffer into a Json string.
// multi_line controls if the Json is written out on multiple lines or one.