2.3.2Weird, it compiles perfectly on my system. What version of the IDE are you running? It gives you the version number in the title bar.
In the meantime try this:
Create a brand new sketch name it what you want and copy & paste the below in.
#include <ESPAsyncWebServer.h>
#include <TokenIterator.h>
#include <UrlTokenBindings.h>
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
UrlTokenBindings parseURL(AsyncWebServerRequest *request, char templatePath[]) {
char urlBuffer[30];
request->url().toCharArray(urlBuffer, 30);
int urlLength = request->url().length();
auto templateIterator = std::make_shared<TokenIterator>(templatePath, strlen(templatePath), '/');
auto pathIterator = std::make_shared<TokenIterator>(urlBuffer, urlLength, '/');
UrlTokenBindings bindings(templateIterator, pathIterator);
return bindings;
}
See whether that compiles for you