From 4a238a6762041ef40a56025db6c25e226b432ff3 Mon Sep 17 00:00:00 2001 From: bcsgh <33939446+bcsgh@users.noreply.github.com> Date: Mon, 10 Apr 2023 20:32:05 -0700 Subject: [PATCH 1/2] Be more explicit about C++ version requierments. --- README.md | 1 + src/httpserver.hpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 8e2da8ae..b0a4c0e8 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,7 @@ libhttpserver can be used without any dependencies aside from libmicrohttpd. The minimum versions required are: * g++ >= 5.5.0 or clang-3.6 +* C++17 or newer * libmicrohttpd >= 0.9.64 * [Optionally]: for TLS (HTTPS) support, you'll need [libgnutls](http://www.gnutls.org/). * [Optionally]: to compile the code-reference, you'll need [doxygen](http://www.doxygen.nl/). diff --git a/src/httpserver.hpp b/src/httpserver.hpp index 100e7276..ff8c649d 100644 --- a/src/httpserver.hpp +++ b/src/httpserver.hpp @@ -21,6 +21,10 @@ #ifndef SRC_HTTPSERVER_HPP_ #define SRC_HTTPSERVER_HPP_ +#if __cplusplus < 201703L +# error("libhttpserver requiers C++17 or later.") +#endif + #define _HTTPSERVER_HPP_INSIDE_ #include "httpserver/basic_auth_fail_response.hpp" From 90bc2143d9b0195b00b8ad30084e2579ae3b3764 Mon Sep 17 00:00:00 2001 From: bcsgh <33939446+bcsgh@users.noreply.github.com> Date: Tue, 11 Apr 2023 16:25:00 -0700 Subject: [PATCH 2/2] Typo. --- src/httpserver.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpserver.hpp b/src/httpserver.hpp index ff8c649d..8b706613 100644 --- a/src/httpserver.hpp +++ b/src/httpserver.hpp @@ -22,7 +22,7 @@ #define SRC_HTTPSERVER_HPP_ #if __cplusplus < 201703L -# error("libhttpserver requiers C++17 or later.") +# error("libhttpserver requires C++17 or later.") #endif #define _HTTPSERVER_HPP_INSIDE_