Opened 14 years ago

Closed 14 years ago

#2678 closed Bugs (invalid)

poor programming style in boost::program_options examples

Reported by: alfonso@… Owned by: Vladimir Prus
Milestone: Boost 1.38.0 Component: program_options
Version: Boost 1.37.0 Severity: Problem
Keywords: Cc:

Description

The examples all contain lines similar to the following:

cout << desc << "\n";

The use of "\n" is poor programming style, and should be replaced with std::endl;

Change History (2)

comment:1 by Marshall Clow, 14 years ago

Component: Noneprogram_options
Owner: set to Vladimir Prus

comment:2 by Vladimir Prus, 14 years ago

Resolution: invalid
Status: newclosed

The difference between "\n" and std::endl is so small that it does not justify any effort being spent on this matter.

Note: See TracTickets for help on using tickets.