From Jason Turner

[ofstream.cons]

Diff to HTML by rtfpessoa

tmp/tmpg2ubfh2o/{from.md → to.md} RENAMED
@@ -22,16 +22,23 @@ with `basic_filebuf<charT, traits>()` [[filebuf.cons]], then calls
22
  null pointer, calls `setstate(failbit)`.
23
 
24
  ``` cpp
25
  explicit basic_ofstream(const string& s,
26
  ios_base::openmode mode = ios_base::out);
27
- explicit basic_ofstream(const filesystem::path& s,
28
- ios_base::openmode mode = ios_base::out);
29
  ```
30
 
31
  *Effects:* Equivalent to: `basic_ofstream(s.c_str(), mode)`.
32
 
 
 
 
 
 
 
 
 
 
33
  ``` cpp
34
  basic_ofstream(basic_ofstream&& rhs);
35
  ```
36
 
37
  *Effects:* Move constructs the base class, and the contained
 
22
  null pointer, calls `setstate(failbit)`.
23
 
24
  ``` cpp
25
  explicit basic_ofstream(const string& s,
26
  ios_base::openmode mode = ios_base::out);
 
 
27
  ```
28
 
29
  *Effects:* Equivalent to: `basic_ofstream(s.c_str(), mode)`.
30
 
31
+ ``` cpp
32
+ template<class T>
33
+ explicit basic_ofstream(const T& s, ios_base::openmode mode = ios_base::out);
34
+ ```
35
+
36
+ *Constraints:* `is_same_v<T, filesystem::path>` is `true`.
37
+
38
+ *Effects:* Equivalent to: `basic_ofstream(s.c_str(), mode)`.
39
+
40
  ``` cpp
41
  basic_ofstream(basic_ofstream&& rhs);
42
  ```
43
 
44
  *Effects:* Move constructs the base class, and the contained