mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 19:05:59 -04:00
Fix close return code
This commit is contained in:
parent
6897f5f5a8
commit
4db7a4e0db
@ -107,7 +107,7 @@ private:
|
|||||||
template <class SS>
|
template <class SS>
|
||||||
typename std::enable_if<std::is_base_of<std::ostream, SS>::value, int>::type CloseHelper() {
|
typename std::enable_if<std::is_base_of<std::ostream, SS>::value, int>::type CloseHelper() {
|
||||||
stream_.flush();
|
stream_.flush();
|
||||||
return stream_.rdstate() & std::ios_base::badbit;
|
return (stream_.rdstate() & std::ios_base::badbit) ? -1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class SS>
|
template <class SS>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user