Skip to content

Commit 4b2bc10

Browse files
TylerMSFTTylerMSFT
authored andcommitted
fix github 2353
1 parent 512cdc5 commit 4b2bc10

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

docs/standard-library/ios-base-class.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -483,16 +483,17 @@ See [`xalloc`](#xalloc) for a sample of how to use `iword`.
483483
Describes how to interact with a stream.
484484

485485
```cpp
486-
using openmode = int;
487-
488-
static constexpr _Openmode in = static_cast<_Openmode>(0x01);
489-
static constexpr _Openmode out = static_cast<_Openmode>(0x02);
490-
static constexpr _Openmode ate = static_cast<_Openmode>(0x04);
491-
static constexpr _Openmode app = static_cast<_Openmode>(0x08);
492-
static constexpr _Openmode trunc = static_cast<_Openmode>(0x10);
493-
static constexpr _Openmode _Nocreate = static_cast<_Openmode>(0x40);
494-
static constexpr _Openmode _Noreplace = static_cast<_Openmode>(0x80);
495-
static constexpr _Openmode binary = static_cast<_Openmode>(0x20);
486+
class ios_base {
487+
public:
488+
typedef implementation-defined-bitmask-type openmode;
489+
static const openmode in;
490+
static const openmode out;
491+
static const openmode ate;
492+
static const openmode app;
493+
static const openmode trunc;
494+
static const openmode binary;
495+
// ...
496+
};
496497
```
497498
498499
### Remarks

0 commit comments

Comments
 (0)