From 2d2425209d5ac6de44891355879d7fbd29e57c42 Mon Sep 17 00:00:00 2001 From: Jonathan Turkanis Date: Mon, 16 May 2005 16:31:26 +0000 Subject: [PATCH] gave name to anonymous enum, for gcc 3.2 [SVN r28961] --- include/boost/iostreams/chain.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/boost/iostreams/chain.hpp b/include/boost/iostreams/chain.hpp index 7423bf7..fc7ef65 100755 --- a/include/boost/iostreams/chain.hpp +++ b/include/boost/iostreams/chain.hpp @@ -42,7 +42,7 @@ # include #endif -// Sometimes type_info objects must be compared by name. Borrowed from +// Sometimes type_info objects must be compared by name. Borrowed from // Boost.Python and Boost.Function. #if (defined(__GNUC__) && __GNUC__ >= 3) || \ defined(_AIX) || \ @@ -271,10 +271,10 @@ private: b->close(m); } - static void set_next(streambuf_type* b, streambuf_type* next) + static void set_next(streambuf_type* b, streambuf_type* next) { b->set_next(next); } - static void set_auto_close(streambuf_type* b, bool close) + static void set_auto_close(streambuf_type* b, bool close) { b->set_auto_close(close); } struct closer : public std::unary_function { @@ -287,7 +287,7 @@ private: }; friend struct closer; - enum { + enum flags { f_complete = 1, f_open = 2, f_auto_close = 4 @@ -335,7 +335,7 @@ private: streambuf_type* buf = 0; std::swap(buf, *first); delete buf; - } + } links_.clear(); flags_ &= ~f_complete; flags_ &= ~f_open;