diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-10-06 17:54:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-10-06 17:54:17 +0200 |
commit | 0f26f7c3c32cdea481cfa2982e5f8a3f26cb9bff (patch) | |
tree | cb3a2d4885367123751e246dc416d20e3f9ba18b /bbot/worker/worker.cxx | |
parent | 0ef1bdfb0f5ce8e0f2f6adb84608cd098660e558 (diff) |
Get rid of using namespace std
Diffstat (limited to 'bbot/worker/worker.cxx')
-rw-r--r-- | bbot/worker/worker.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx index 70b2578..a34d57b 100644 --- a/bbot/worker/worker.cxx +++ b/bbot/worker/worker.cxx @@ -12,6 +12,7 @@ #include <regex> #include <cstring> // strchr() +#include <sstream> #include <iostream> #include <libbutl/pager.mxx> @@ -27,10 +28,12 @@ #include <bbot/worker/worker-options.hxx> -using namespace std; using namespace butl; using namespace bbot; +using std::cout; +using std::endl; + namespace bbot { process_path argv0; @@ -60,6 +63,8 @@ catch (const system_error& e) fail << "unable to change current directory to " << d << ": " << e << endf; } +using std::regex; +namespace regex_constants = std::regex_constants; using regexes = vector<regex>; // Run a named command. Name is used for logging and diagnostics only. Match @@ -82,7 +87,7 @@ run_cmd (tracer& t, { t (c, n); - ostringstream os; + std::ostringstream os; process::print (os, c, n); log += os.str (); log += '\n'; @@ -777,7 +782,7 @@ try #ifndef _WIN32 if (signal (SIGPIPE, SIG_IGN) == SIG_ERR) fail << "unable to ignore broken pipe (SIGPIPE) signal: " - << system_error (errno, generic_category ()); // Sanitize. + << system_error (errno, std::generic_category ()); // Sanitize. #else SetErrorMode (SetErrorMode (0) | // Returns the current mode. SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX); |