Opened 10 years ago

Last modified 9 years ago

#7340 new Bugs

Visual studio iostreams warnings

Reported by: Alan Birtles <alan.birtles@…> Owned by: Jonathan Turkanis
Milestone: To Be Determined Component: iostreams
Version: Boost 1.52.0 Severity: Problem
Keywords: Cc:

Description

Visual studio 2010 raises "conditional expression is constant" warnings from chain.hpp. This can be fixed by simply including the disable_warnings header in chain.hpp

Visual studio 2010 raises various "unreachable code" warnings. This can be fixed by adding warning 4702 in disable_warnings.hpp

Visual studio 2012 raises a "inherits via dominance" warning from stream.hpp (see http://connect.microsoft.com/VisualStudio/feedback/details/733720/inheriting-from-std-fstream-produces-c4250-warning for the cause of this warning). This requires including the disable_warnings header in stream.hpp and adding warning 4250 to disable_warnings.

Attachments (1)

warnings.patch (2.1 KB ) - added by Alan Birtles <alan.birtles@…> 10 years ago.
Patch to fix warnings

Download all attachments as: .zip

Change History (2)

by Alan Birtles <alan.birtles@…>, 10 years ago

Attachment: warnings.patch added

Patch to fix warnings

comment:1 by natalie@…, 9 years ago

The warning 4250 is quite annoying, is there a timeline for when the patch will be accepted in? Is there anything I can do to help it get accepted?

Note: See TracTickets for help on using tickets.