boostorg / boostorg/iostreams

C4706: assignment within conditional expression

Open
#81 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
48
Forks
124
PR merge metrics
No merged PRs in 30d

Description

boost\iostreams\filter\zlib.hpp(392): warning C4706: assignment within conditional expression

This warning is seen from MSVC 15.9.8 / 15.9.9 during linking of a release build.
Which is odd. Debug builds are fine.

Offending code is:
return !(eof_ = result == zlib::stream_end);

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect boost\iostreams\filter\zlib.hpp at line 392, especially the return expression shown in the report. Reproduce the warning with MSVC 15.9.8 or 15.9.9 during a release-build link, then verify the warning is absent while debug builds remain unaffected.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.