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.15k stars 93 forks source link

RESTinio can be used in a project where fmtlib is used with FMT_ENFORCE_COMPILE_STRING=1 #165

Closed eao197 closed 2 years ago

eao197 commented 2 years ago

If fmtlib is used with

#define FMT_ENFORCE_COMPILE_STRING 1

then all calls to fmt::format should use FMT_STRING for format string.

An attempt to use RESTinio in such a project leads to compile-time errors in RESTinio's calls to fmt::string.

It's necessary to adapt RESTinio's usage of fmtlib to scenario when FMT_ENFORCE_COMPILE_STRING is forced.