Function pointer for templated class method
Hi everyone, I need a hand to solve this problem, I'm trying to create a function that allows me to call a class method passed as a parameter of the aforementioned function, only that once I compile the code I get this error: src\main.cpp: In function 'void setup()': src\main.cpp:38:37: error: invalid use of non-static member function 'void esp8266webserver::ESP8266WebServerTemplate<ServerType>::handleClient() [with ServerType = WiFiServer]' 38 | b25.handler.when_connected(server.handleClient); | ~~~~~~~^~~~~~~~~~~~ In file included from ..\..\..\..\.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WebServer\src/ESP8266WebServer.h:340, from src\main.cpp:4: ..\..\..\..\.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WebServer\src/ESP8266WebServer-impl.h:274:6: note: declared here 274 | void ESP8266WebServerTemplate<ServerType>::handleClient() { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~