mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-16 05:11:29 +00:00
Remove c++17 construct, a bridge too far for now
This commit is contained in:
parent
597c4e8c60
commit
52276d06b0
@ -8,6 +8,10 @@
|
|||||||
|
|
||||||
struct MethodHandlerEntry
|
struct MethodHandlerEntry
|
||||||
{
|
{
|
||||||
|
MethodHandlerEntry() {
|
||||||
|
status = 0;
|
||||||
|
}
|
||||||
|
|
||||||
MethodHandlerEntry(EQ::Net::WebsocketServer::MethodHandler h, int s) {
|
MethodHandlerEntry(EQ::Net::WebsocketServer::MethodHandler h, int s) {
|
||||||
handler = h;
|
handler = h;
|
||||||
status = s;
|
status = s;
|
||||||
@ -126,7 +130,7 @@ void EQ::Net::WebsocketServer::SetMethodHandler(const std::string &method, Metho
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_impl->methods.insert_or_assign(method, MethodHandlerEntry(handler, required_status));
|
_impl->methods[method] = MethodHandlerEntry(handler, required_status);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EQ::Net::WebsocketServer::SetLoginHandler(LoginHandler handler)
|
void EQ::Net::WebsocketServer::SetLoginHandler(LoginHandler handler)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user