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_tokenizer.cc b/aos/json_tokenizer.cc
index e3aa7ea..aa92762 100644
--- a/aos/json_tokenizer.cc
+++ b/aos/json_tokenizer.cc
@@ -31,7 +31,7 @@
}
bool Tokenizer::Consume(const char *token) {
- const absl::string_view original = data_;
+ const std::string_view original = data_;
while (true) {
// Finishing the token is success.
if (*token == '\0') {
@@ -58,7 +58,7 @@
bool Tokenizer::ConsumeString(::std::string *s) {
// Under no conditions is it acceptible to run out of data while parsing a
// string. Any AtEnd checks should confirm that.
- const absl::string_view original = data_;
+ const std::string_view original = data_;
if (AtEnd()) {
return false;
}
@@ -69,7 +69,7 @@
}
ConsumeChar();
- absl::string_view last_parsed_data = data_;
+ std::string_view last_parsed_data = data_;
*s = ::std::string();
while (true) {
@@ -134,7 +134,7 @@
// Under no conditions is it acceptible to run out of data while parsing a
// number. Any AtEnd() checks should confirm that.
*s = ::std::string();
- const absl::string_view original = data_;
+ const std::string_view original = data_;
// Consume the leading - unconditionally.
Consume("-");