Make everything struct, never use class

This commit is contained in:
Alex Hultman
2019-06-09 08:07:51 +02:00
parent 762b18459e
commit 996703dde6
10 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ public:
fu2::unique_function<void(uWS::WebSocket<SSL, true> *, int, std::string_view)> close = nullptr;
};
template <class UserData>
template <typename UserData>
TemplatedApp &&ws(std::string pattern, WebSocketBehavior &&behavior) {
/* Don't compile if alignment rules cannot be satisfied */
static_assert(alignof(UserData) <= LIBUS_EXT_ALIGNMENT,