From 9d89083ea570e01334feeecdc2815d99dfa51524 Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Tue, 29 Aug 2017 14:21:31 +1100 Subject: [PATCH] Preprocessor: explicitly specify streambuf in the std namespace for clarity --- src/serialization/preprocessor.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/serialization/preprocessor.cpp b/src/serialization/preprocessor.cpp index 9af66b823766..743cdfdb8b60 100644 --- a/src/serialization/preprocessor.cpp +++ b/src/serialization/preprocessor.cpp @@ -38,8 +38,6 @@ static lg::log_domain log_preprocessor("preprocessor"); #define LOG_PREPROC LOG_STREAM(info, log_preprocessor) #define DBG_PREPROC LOG_STREAM(debug, log_preprocessor) -using std::streambuf; - static std::string current_file_str = "CURRENT_FILE"; static std::string current_dir_str = "CURRENT_DIRECTORY"; @@ -267,11 +265,11 @@ class preprocessor * Target for sending preprocessed output. * Objects of this class can be plugged into an STL stream. */ -class preprocessor_streambuf : public streambuf +class preprocessor_streambuf : public std::streambuf { public: preprocessor_streambuf(preproc_map* def) - : streambuf() + : std::streambuf() , out_buffer_("") , buffer_() , preprocessor_queue_() @@ -304,7 +302,7 @@ class preprocessor_streambuf : public streambuf private: preprocessor_streambuf(const preprocessor_streambuf& t) - : streambuf() + : std::streambuf() , out_buffer_("") , buffer_() , preprocessor_queue_()