From 33ee10dbe6d3688c811f5cd79a08091c69d46441 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Sat, 23 Jan 2021 19:13:56 +0100 Subject: [PATCH] negotiateCompression has to be static inline --- src/WebSocketExtensions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebSocketExtensions.h b/src/WebSocketExtensions.h index f94d175..93fd5df 100644 --- a/src/WebSocketExtensions.h +++ b/src/WebSocketExtensions.h @@ -141,7 +141,7 @@ public: }; /* Takes what we (the server) wants, returns what we got */ -std::tuple negotiateCompression(bool wantCompression, int wantedCompressionWindow, int wantedInflationWindow, std::string_view offer) { +static inline std::tuple negotiateCompression(bool wantCompression, int wantedCompressionWindow, int wantedInflationWindow, std::string_view offer) { /* If we don't want compression then we are done here */ if (!wantCompression) {