From ea15e7b6131ec80a19b0fdd425884957e0fb8165 Mon Sep 17 00:00:00 2001 From: mwilsnd <53413200+mwilsnd@users.noreply.github.com> Date: Tue, 30 Jan 2024 14:59:44 -0500 Subject: [PATCH] Use C++17 in csscolorparser (#2071) --- vendor/csscolorparser/csscolorparser.cpp | 2 +- vendor/csscolorparser/csscolorparser/csscolorparser.hpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/vendor/csscolorparser/csscolorparser.cpp b/vendor/csscolorparser/csscolorparser.cpp index b0ff5f84e01..74764a22e24 100644 --- a/vendor/csscolorparser/csscolorparser.cpp +++ b/vendor/csscolorparser/csscolorparser.cpp @@ -176,7 +176,7 @@ std::vector split(const std::string& s, char delim) { return elems; } -std::experimental::optional parse(const std::string& css_str) { +std::optional parse(const std::string& css_str) { std::string str = css_str; // Remove all whitespace, not compliant, but should just be more accepting. diff --git a/vendor/csscolorparser/csscolorparser/csscolorparser.hpp b/vendor/csscolorparser/csscolorparser/csscolorparser.hpp index 30b308022a5..7b41bfa5de2 100644 --- a/vendor/csscolorparser/csscolorparser/csscolorparser.hpp +++ b/vendor/csscolorparser/csscolorparser/csscolorparser.hpp @@ -25,8 +25,7 @@ #ifndef CSS_COLOR_PARSER_CPP #define CSS_COLOR_PARSER_CPP -#include - +#include #include #include @@ -50,7 +49,7 @@ inline bool operator!=(const Color& lhs, const Color& rhs) { return !(lhs == rhs); } -std::experimental::optional parse(const std::string& css_str); +std::optional parse(const std::string& css_str); } // namespace CSSColorParser