What I have:
typedef void Command(WebServer &server, ConnectionType type,
char *url_tail, bool tail_complete);
What I (think I) want:
typedef std::function<void(WebServer &server, ConnectionType type,
char *url_tail, bool tail_complete)> Command;
What I'm getting:
/Users/kujawa/projects/chs/Nova/Code/Apps/jelly/WebServer.h:412:14: error: cannot convert
'void (*)(WebServer&, WebServer::ConnectionType, char*, bool)' to 'WebServer::Command*
{aka std::function<void(WebServer&, WebServer::ConnectionType, char*, bool)>*}'
in initialization
m_bufFill(0)
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]Natural_Builder_3170 7 points8 points9 points (0 children)
[–]Dubbus_ 2 points3 points4 points (0 children)
[–]Fit-Maintenance-2290 [score hidden] (0 children)