From 647e4273fc88bd2a45387972ee0740dd7ebfb777 Mon Sep 17 00:00:00 2001 From: Jonathan Turkanis Date: Sun, 15 May 2005 00:59:30 +0000 Subject: [PATCH] fixed is_good [SVN r28914] --- include/boost/iostreams/char_traits.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/iostreams/char_traits.hpp b/include/boost/iostreams/char_traits.hpp index e04310f..489b2bf 100755 --- a/include/boost/iostreams/char_traits.hpp +++ b/include/boost/iostreams/char_traits.hpp @@ -52,7 +52,7 @@ struct char_traits : std::char_traits { static wchar_t newline() { return L'\n'; } static int good() { return L'\n'; } static int would_block() { return WWOULD_BLOCK; } - static bool is_good(int c) { return c != WEOF && c != WWOULD_BLOCK; } + static bool is_good(std::wint_t c) { return c != WEOF && c != WWOULD_BLOCK; } static bool is_eof(std::wint_t c) { return c == WEOF; } static bool would_block(std::wint_t c) { return c == WWOULD_BLOCK; } };