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