Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit d841ce2

Browse files
committed
istream, ostream: Fix building with g++ >= 5
include/ostream:298:50: error: default argument for template parameter for class enclosing ‘class std::basic_ostream<charT, traits>::sentry’ include/istream:343:107: error: default argument for template parameter for class enclosing ‘class std::basic_istream<charT, traits>::sentry’ Signed-off-by: Bernhard Reutner-Fischer <[email protected]>
1 parent 2883027 commit d841ce2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

include/istream

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,9 @@ namespace std{
340340

341341
};
342342

343-
template <class charT,class traits = char_traits<charT> > class _UCXXEXPORT basic_istream<charT,traits>::sentry {
343+
template <class charT,class traits>
344+
class _UCXXEXPORT basic_istream<charT,traits>::sentry
345+
{
344346
bool ok;
345347
public:
346348
explicit _UCXXEXPORT sentry(basic_istream<charT,traits>& os, bool noskipws = false){

include/ostream

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ namespace std {
294294
#endif
295295
#endif
296296

297-
template <class charT,class traits = char_traits<charT> >
297+
template <class charT,class traits>
298298
class _UCXXEXPORT basic_ostream<charT,traits>::sentry
299299
{
300300
bool ok;

0 commit comments

Comments
 (0)