Now using std::optional

This commit is contained in:
2020-10-27 10:03:04 +01:00
parent 1662bf5a4f
commit fd0d4c8dc8
2 changed files with 3 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ private:
} }
tl::optional<URL> parseURL(const String &url) std::optional<URL> parseURL(const String &url)
{ {
int hostBeg = 0; int hostBeg = 0;
URL _URL; URL _URL;

View File

@@ -31,7 +31,7 @@
#include <Arduino.h> #include <Arduino.h>
#include <WString.h> #include <WString.h>
#include <include/tl/optional.hpp> #include <optional>
#include "AsyncHTTPRequest_Debug.h" #include "AsyncHTTPRequest_Debug.h"
@@ -177,7 +177,7 @@ struct URL
} }
}; };
tl::optional<URL> parseURL(const String &url); std::optional<URL> parseURL(const String &url);
class AsyncHTTPRequest class AsyncHTTPRequest
{ {