Skip to content

Commit

Permalink
Preprocessor: explicitly specify streambuf in the std namespace for c…
Browse files Browse the repository at this point in the history
…larity
  • Loading branch information
Vultraz committed Aug 29, 2017
1 parent 613f1d9 commit 9d89083
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/serialization/preprocessor.cpp
Expand Up @@ -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";

Expand Down Expand Up @@ -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_()
Expand Down Expand Up @@ -304,7 +302,7 @@ class preprocessor_streambuf : public streambuf

private:
preprocessor_streambuf(const preprocessor_streambuf& t)
: streambuf()
: std::streambuf()
, out_buffer_("")
, buffer_()
, preprocessor_queue_()
Expand Down

0 comments on commit 9d89083

Please sign in to comment.