#ifndef STATICDISPATCH_H #define STATICDISPATCH_H // this headers is basically a statically dispatched libusockets wrapper base #include #include namespace uWS { template struct StaticDispatch { template static constexpr typename std::conditional::type *static_dispatch(A *a, B *b) { if constexpr(SSL) { return a; } else { return b; } } typedef typename std::conditional::type SOCKET_TYPE; typedef typename std::conditional::type SOCKET_CONTEXT_TYPE; }; } #endif // STATICDISPATCH_H