From Jason Turner

[diff.cpp03.input.output]

Diff to HTML by rtfpessoa

tmp/tmpg2hlyzgn/{from.md → to.md} RENAMED
@@ -22,17 +22,20 @@ may execute differently in this revision of C++.
22
 
23
  **Change:** Flag types in `std::ios_base` are now bitmasks with values
24
  defined as constexpr static members. **Rationale:** Required for new
25
  features. **Effect on original feature:** Valid C++03 code that relies
26
  on `std::ios_base` flag types being represented as `std::bitset` or as
27
- an integer type may fail to compile with this revision of C++. For
28
- example:
 
29
 
30
  ``` cpp
31
  #include <iostream>
32
 
33
  int main() {
34
  int flag = std::ios_base::hex;
35
  std::cout.setf(flag); // error: setf does not take argument of type int
36
  }
37
  ```
38
 
 
 
 
22
 
23
  **Change:** Flag types in `std::ios_base` are now bitmasks with values
24
  defined as constexpr static members. **Rationale:** Required for new
25
  features. **Effect on original feature:** Valid C++03 code that relies
26
  on `std::ios_base` flag types being represented as `std::bitset` or as
27
+ an integer type may fail to compile with this revision of C++.
28
+
29
+ [*Example 1*:
30
 
31
  ``` cpp
32
  #include <iostream>
33
 
34
  int main() {
35
  int flag = std::ios_base::hex;
36
  std::cout.setf(flag); // error: setf does not take argument of type int
37
  }
38
  ```
39
 
40
+ — *end example*]
41
+