From Jason Turner

[ifstream.cons]

Diff to HTML by rtfpessoa

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