@@ -1185,12 +1185,12 @@ template <typename _CharType, typename _LongType>
1185
1185
void istream_extract_long_impl (streambuf<_CharType> buf)
1186
1186
{
1187
1187
basic_istream<_CharType> is (buf);
1188
- const _LongType v1 = is.extract <_LongType>().get ();
1189
- const _LongType v2 = is.extract <_LongType>().get ();
1188
+ const _LongType v1 = is.template extract <_LongType>().get ();
1189
+ const _LongType v2 = is.template extract <_LongType>().get ();
1190
1190
1191
1191
VERIFY_ARE_EQUAL (123 , v1);
1192
1192
VERIFY_ARE_EQUAL (-567 , v2);
1193
- VERIFY_THROWS (is.extract <_LongType>().get (), std::runtime_error);
1193
+ VERIFY_THROWS (is.template extract <_LongType>().get (), std::runtime_error);
1194
1194
}
1195
1195
1196
1196
TEST (istream_extract_long)
@@ -1205,12 +1205,12 @@ template <typename _CharType, typename _LongType>
1205
1205
void istream_extract_unsigned_long_impl (streambuf<_CharType> buf)
1206
1206
{
1207
1207
basic_istream<_CharType> is (buf);
1208
- const _LongType v1 = is.extract <_LongType>().get ();
1209
- const _LongType v2 = is.extract <_LongType>().get ();
1208
+ const _LongType v1 = is.template extract <_LongType>().get ();
1209
+ const _LongType v2 = is.template extract <_LongType>().get ();
1210
1210
1211
1211
VERIFY_ARE_EQUAL (876 , v1);
1212
1212
VERIFY_ARE_EQUAL (3 , v2);
1213
- VERIFY_THROWS (is.extract <_LongType>().get (), std::runtime_error);
1213
+ VERIFY_THROWS (is.template extract <_LongType>().get (), std::runtime_error);
1214
1214
}
1215
1215
1216
1216
TEST (istream_extract_unsigned_long)
@@ -1410,4 +1410,4 @@ TEST(seek_after_eof)
1410
1410
1411
1411
} // SUITE(istream_tests)
1412
1412
1413
- }}}
1413
+ }}}
0 commit comments