eddic / fastcgipp

fastcgi++: A C++ FastCGI and Web development platform:
https://fastcgipp.isatec.ca
GNU Lesser General Public License v3.0
310 stars 94 forks source link

Compilation error with gcc 7.1.1 #24

Closed aspotashev closed 7 years ago

aspotashev commented 7 years ago

Compilation error with gcc 7.1.1

fastcgipp/include/fastcgi++/fcgistreambuf.hpp:73:28: error: «function» in namespace «std» does not name a template type
                 const std::function<void(const Socket&, std::vector<char>&&)>

patch:

diff --git a/include/fastcgi++/fcgistreambuf.hpp b/include/fastcgi++/fcgistreambuf.hpp
index 6436d07..1f4b3a8 100644
--- a/include/fastcgi++/fcgistreambuf.hpp
+++ b/include/fastcgi++/fcgistreambuf.hpp
@@ -34,6 +34,7 @@
 #include "fastcgi++/block.hpp"

 #include <istream>
+#include <functional>

 //! Topmost namespace for the fastcgi++ library
 namespace Fastcgipp
eddic commented 7 years ago

See commit 9be1f1d1. Thanks for finding this!