1
0
Эх сурвалжийг харах

Don't throw if seeking the end of the restricted area of a file.

The restrict tests were failing on Visual C++ because they seek the end
of the restricted area (`io.seekp(0, BOOST_IOS::END)`). I think this is
something that should be allowed, so I've changed it so that it doesn't
throw if moving to one past the end. Hopefully it will throw if the user
actually tries to write to the file after this seek.

It looks like the test wasn't failing on gcc because the standard
library was suppressing the exception.

[SVN r58569]
Daniel James 16 жил өмнө
parent
commit
001b4d0f50
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      libs/iostreams

+ 1 - 1
libs/iostreams

@@ -1 +1 @@
-Subproject commit def77cf80f0354acee211c9873d350aa3024cc59
+Subproject commit 809d4a7daaaf116958c5a1fa25f827a80f460710

粤ICP备19079148号