eidheim / Simple-Web-Server

A very simple, fast, multithreaded, platform independent HTTP and HTTPS server and client library implemented using C++11 and Boost.Asio. Created to be an easy way to make REST resources available from C++ applications.
MIT License
2.62k stars 758 forks source link

error in Tests build #119

Closed amigo421 closed 7 years ago

amigo421 commented 7 years ago

just tried to build the tests and got the error:

C:\dev\workspace\Simple-Web-Server\tests\parse_test.cpp(17): error C2248: 'SimpleWeb::ServerBase::Request::Request': cannot access private member declared in class 'SimpleWeb::ServerBase::Request'

amigo421 commented 7 years ago

ah, I see the problem, this is GCC specific stuff, but I'm from vc world I see cmakelists scripts are not adapted for other than GCC compilers

for the tests, this is -fno-access-control option, I don't know the analogue for cl

eidheim commented 7 years ago

I don't use Windows, but feel free to see if cl supports this option.

amigo421 commented 7 years ago

as far as I know - no, it doesn't . will try to use your lib on Win for my project. on the moment, looks useful for me. thank you!

then I'm going to close the request.

just a question before that - I see a lot of boost libs used in your project currently included into the standard, or in TR, I mean : regex, chrono, thread, filesystem, asio can also be used without boost dependency. why you don't minimize the dependencies from other than standard libraries?

amigo421 commented 7 years ago

please close the request, I currently don't know the solution, if will find this I'll raise a PR