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/y2019/jevois/uart.h b/y2019/jevois/uart.h
index b9e784b..14a46da 100644
--- a/y2019/jevois/uart.h
+++ b/y2019/jevois/uart.h
@@ -3,7 +3,7 @@
#include "aos/containers/sized_array.h"
#include "third_party/GSL/include/gsl/gsl"
-#include "third_party/optional/tl/optional.hpp"
+#include <optional>
#include "y2019/jevois/cobs.h"
#include "y2019/jevois/structures.h"
@@ -30,10 +30,10 @@
aos::SizedArray<char, CobsMaxEncodedSize(uart_to_camera_size())>;
UartToTeensyBuffer UartPackToTeensy(const CameraFrame &message);
-tl::optional<CameraFrame> UartUnpackToTeensy(gsl::span<const char> buffer);
+std::optional<CameraFrame> UartUnpackToTeensy(gsl::span<const char> buffer);
UartToCameraBuffer UartPackToCamera(const CameraCalibration &message);
-tl::optional<CameraCalibration> UartUnpackToCamera(
+std::optional<CameraCalibration> UartUnpackToCamera(
gsl::span<const char> buffer);
} // namespace jevois