@@ -99,10 +99,10 @@ TYPED_TEST(file, create_multiple) {
9999TYPED_TEST (file, openmode) {
100100 basic_file<TypeParam> tmpfile = basic_file<TypeParam>();
101101 tmpfile << " Hello, World!" << std::flush;
102- tmpfile.seekg (0 );
102+ tmpfile.seekg (0 , std::ios_base::beg );
103103 tmpfile << " Goodbye!" << std::flush;
104104
105- tmpfile.seekg (0 );
105+ tmpfile.seekg (0 , std::ios_base::beg );
106106 std::string content = std::string (std::istreambuf_iterator (tmpfile), {});
107107 EXPECT_EQ (content, " Goodbye!orld!" );
108108}
@@ -128,7 +128,7 @@ TYPED_TEST(file, move_constructor) {
128128
129129 EXPECT_TRUE (TestFixture::is_open (snd.rdbuf ()));
130130
131- snd.seekg (0 );
131+ snd.seekg (0 , std::ios_base::beg );
132132 std::basic_string<TypeParam> content;
133133 snd >> content;
134134 EXPECT_EQ (content, TestFixture::convert_string (" Hello!" ));
@@ -154,7 +154,7 @@ TYPED_TEST(file, move_assignment) {
154154
155155 EXPECT_TRUE (TestFixture::is_open (fst.rdbuf ()));
156156
157- fst.seekg (0 );
157+ fst.seekg (0 , std::ios_base::beg );
158158 std::basic_string<TypeParam> content;
159159 fst >> content;
160160 EXPECT_EQ (content, TestFixture::convert_string (" Hello!" ));
0 commit comments