Opened 14 years ago
Closed 14 years ago
#2678 closed Bugs (invalid)
poor programming style in boost::program_options examples
| Reported by: | 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 , 14 years ago
| Component: | None → program_options |
|---|---|
| Owner: | set to |
comment:2 by , 14 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

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