Skip to content

Commit

Permalink
basic_filebuf::open: fix openmode table
Browse files Browse the repository at this point in the history
  • Loading branch information
ACUVE authored Jan 28, 2022
1 parent 63af7be commit 360323f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reference/fstream/basic_filebuf/open.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ basic_filebuf* open(const filesystem::path& s, ios_base::openmode mode); // (4)
まず`mode & ~ios_base::ate`の結果からファイルの開くモードが決定される。`fopen`のモード文字列との対応は以下の通り。
| `binary` | `in` | `out` | `trunc` | `ate` | 対応する`fopen`のモード文字列 |
| `binary` | `in` | `out` | `trunc` | `app` | 対応する`fopen`のモード文字列 |
|----------|------|-------|---------|-------|--------------------|
| | | ○ | | | `"w"` |
| | | ○ | | ○ | `"a"` |
Expand Down Expand Up @@ -85,4 +85,4 @@ int main()
## 参照

- [LGW issue 2676. Provide filesystem::path overloads for File-based streams](https://wg21.cmeerw.net/lwg/issue2676)
- [LGW issue 2943. Problematic specification of the wide version of basic_filebuf::open](https://wg21.cmeerw.net/lwg/issue2943)
- [LGW issue 2943. Problematic specification of the wide version of basic_filebuf::open](https://wg21.cmeerw.net/lwg/issue2943)

0 comments on commit 360323f

Please sign in to comment.