-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning while building example #532
Comments
Yeah I don't really know how to fix that, its a false positive - do you have any suggestions? |
I'm investigating, it does not happen on clang, msvc, or gcc 6: It does happen on gcc 5 |
There you have a comparison I am not sure and the doc So the basic idea is to change the type of variable
Have a look at the uploaded file. Compiles without warning. |
Very interesting! |
On gcc 5 it did not fix the problem: |
Tried your workaround with So try my approach. With |
BTW: Have you inspected boost iostream zlib? |
Yes, that requires that you link against zlib. The whole point of the zlib port in Beast is that 1. It is c++11 with type safety, and 2. it is header-only, does not require building a linking a separate lib. |
But header-only is not true for ssl?! Perhaps using zlib needs linking zlib? is zlib optional too? You know... 3000 lines of code. And reinvent the wheel... Or use a lib. |
But serious. Beast is not header-only at all. Always requiered
Optional
So, who cares about one optional lib more? And for what a price? But you decided to maintain zlib support by yourself. We will respect it. |
Did the approach with |
I'm one of those Windows developers! "header-only" means that Beast does not come with a build script for building its library. So in that sense, it is very much header-only. The very first complaint about Boost.Http (a library that was reviewed in 2015) was "this is not header-only." There is a preference for header-only libraries, they are easier to maintain and easier to integrate. So that is why I made those choices. Do note that Beast's zlib implementation is a port and not a rewrite of zlib. |
Yes. I thought so. Again, your decision to include zlib stuff is very fine! |
In less than a month beast is in boost. |
The Beast version of zlib does not support the gzip wrapper, I removed it because WebSocket doesn't need it. I will add it back at some point, but it needs more extensive tests. I don't think iostreams should use the zlib from Beast yet. |
Is this resolved? |
It looks like this has been resolved so I will close the issue - thanks! |
Building this example (using Beast/65)
https://github.com/vinniefalco/Beast/blob/master/example/websocket-client-ssl/websocket_client_ssl.cpp
with
gcc 7.0.1 and -std=c++17
shows this warnings:
The text was updated successfully, but these errors were encountered: