Stiffstream / restinio

Cross-platform, efficient, customizable, and robust asynchronous HTTP(S)/WebSocket server C++ library with the right balance between performance and ease of use
Other
1.13k stars 93 forks source link

static_if_impl has to be replaced with if constexpr #204

Closed eao197 closed 6 months ago

eao197 commented 7 months ago

There is a workaround for absence of if constexpr in C++14 in the form of static_if_impl. This workaround is now used here: https://github.com/Stiffstream/restinio/blob/1f95dbc72b94b575d1b860f569fe85511a1fff15/dev/restinio/impl/response_coordinator.hpp#L98

The static_if_impl has to be replaced with if constexpr because RESTinio is now C++17 library.