From ea8cc84e1f488e1e1cf2f5486b79c29a7543fd4d Mon Sep 17 00:00:00 2001 From: Jonathan Turkanis Date: Mon, 30 May 2005 00:43:37 +0000 Subject: [PATCH] fixed return type of would_block and good [SVN r29274] --- include/boost/iostreams/char_traits.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/iostreams/char_traits.hpp b/include/boost/iostreams/char_traits.hpp index 489b2bf..fe13e82 100755 --- a/include/boost/iostreams/char_traits.hpp +++ b/include/boost/iostreams/char_traits.hpp @@ -50,8 +50,8 @@ struct char_traits : BOOST_IOSTREAMS_CHAR_TRAITS(char) { template<> 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 std::wint_t good() { return L'\n'; } + static std::wint_t would_block() { return 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; }