Skip to content

Commit aad1a5c

Browse files
authored
Be more explicit about C++ version requierments. (#311)
* Be more explicit about C++ version requierments. * Typo.
1 parent ef139c1 commit aad1a5c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ libhttpserver can be used without any dependencies aside from libmicrohttpd.
7979

8080
The minimum versions required are:
8181
* g++ >= 5.5.0 or clang-3.6
82+
* C++17 or newer
8283
* libmicrohttpd >= 0.9.64
8384
* [Optionally]: for TLS (HTTPS) support, you'll need [libgnutls](http://www.gnutls.org/).
8485
* [Optionally]: to compile the code-reference, you'll need [doxygen](http://www.doxygen.nl/).

src/httpserver.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
#ifndef SRC_HTTPSERVER_HPP_
2222
#define SRC_HTTPSERVER_HPP_
2323

24+
#if __cplusplus < 201703L
25+
# error("libhttpserver requires C++17 or later.")
26+
#endif
27+
2428
#define _HTTPSERVER_HPP_INSIDE_
2529

2630
#include "httpserver/basic_auth_fail_response.hpp"

0 commit comments

Comments
 (0)