mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
Constrain and warn GCC 8 bug
This commit is contained in:
parent
7a0576546c
commit
58e211355f
@ -82,7 +82,7 @@ namespace crow
|
||||
|
||||
///Create a route using a rule (**Use CROW_ROUTE instead**)
|
||||
template <uint64_t Tag>
|
||||
#ifdef CROW_GCC8_WORKAROUND
|
||||
#ifdef CROW_GCC83_WORKAROUND
|
||||
auto& route(std::string&& rule)
|
||||
#else
|
||||
auto route(std::string&& rule)
|
||||
|
@ -58,6 +58,10 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if __GNUC__ == 8 && __cplusplus > 201103L
|
||||
#define CROW_GCC8_WORKAROUND
|
||||
#if __GNUC__ == 8 && __GNUC_MINOR__ < 4
|
||||
#if __cplusplus > 201103L
|
||||
#define CROW_GCC83_WORKAROUND
|
||||
#else
|
||||
#warning "GCC 8.1 - 8.3 have a bug that prevents crow from compiling with C++11. Please update GCC to > 8.3 or use C++ > 11."
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user