Skip to content

Commit 888d3ed

Browse files
authored
Merge pull request MicrosoftDocs#2587 from yecril71pl/patch-2
Explicitly convert streampos to streamoff
2 parents 1c2997d + 8d3d902 commit 888d3ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/standard-library/ios-typedefs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ int main( )
6161
ofstream x( "iostream.txt" );
6262
x << "testing";
6363
streampos y = x.tellp( );
64-
cout << y << endl;
64+
cout << streamoff( y ) << '\n';
6565
}
6666
```
6767
@@ -143,7 +143,7 @@ int main( )
143143
wofstream xw( "wiostream.txt" );
144144
xw << L"testing";
145145
wstreampos y = xw.tellp( );
146-
cout << y << endl;
146+
cout << streamoff( y ) << '\n';
147147
}
148148
```
149149

0 commit comments

Comments
 (0)