Happens at least with Boost 1.76 release or lower.
If you build a C++ project which includes Boost's zlib.hpp with /W4 warnings level, you may get a such warning:
boost\iostreams\filter\zlib.hpp(392): warning C4706: assignment within conditional expression
It is caused by this code from the include/boost/iostreams/filter/zlib.hpp:
return !(eof_ = result == zlib::stream_end);
There are at least two possible solutions for this issue:
Add 4706 to the list of disabled warnings in this file:
Happens at least with Boost 1.76 release or lower. If you build a C++ project which includes Boost's zlib.hpp with /W4 warnings level, you may get a such warning:
It is caused by this code from the include/boost/iostreams/filter/zlib.hpp:
There are at least two possible solutions for this issue: