1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-28 05:01:28 +03:00

Avoid #includes with a surrounding namespace (#7560)

untangle the namespace/double inclusions in webserver library.
This is a followup of the discussion in
https://github.com/esp8266/Arduino/pull/6946#discussion_r361582525
This commit is contained in:
Dirk Mueller
2020-09-17 15:35:27 +02:00
committed by GitHub
parent e5c84c9503
commit 32470fbfab
5 changed files with 20 additions and 4 deletions

View File

@ -82,8 +82,12 @@ namespace esp8266webserver {
template<typename ServerType>
class ESP8266WebServerTemplate;
}
#include "detail/RequestHandler.h"
namespace esp8266webserver {
template<typename ServerType>
class ESP8266WebServerTemplate
{
@ -296,13 +300,11 @@ protected:
HookFunction _hook;
};
} // namespace
#include "ESP8266WebServer-impl.h"
#include "Parsing-impl.h"
};
using ESP8266WebServer = esp8266webserver::ESP8266WebServerTemplate<WiFiServer>;
using RequestHandler = esp8266webserver::RequestHandler<WiFiServer>;