Boost C++ Libraries: Ticket #11003: Pointless use of using namespace std https://svn.boost.org/trac10/ticket/11003 <p> There's a few lines in boost/asio/detail/impl/signal_set_service.ipp that use "using namespace std" inside a block for a single call to std::memset rather than just using "std::memset." These blocks of code are also clearly copied from each other but that might not be an issue. </p> <p> Here's a patch switching those lines around: </p> <pre class="wiki">--- boost/asio/detail/impl/signal_set_service.ipp Mon Feb 9 10:42:58 2015 +++ boost/asio/detail/impl/signal_set_service.ipp Mon Feb 9 10:44:35 2015 @@ -271,9 +271,8 @@ if (state-&gt;registration_count_[signal_number] == 0) { # if defined(BOOST_ASIO_HAS_SIGACTION) - using namespace std; // For memset. struct sigaction sa; - memset(&amp;sa, 0, sizeof(sa)); + std::memset(&amp;sa, 0, sizeof(sa)); sa.sa_handler = boost_asio_signal_handler; sigfillset(&amp;sa.sa_mask); if (::sigaction(signal_number, &amp;sa, 0) == -1) @@ -342,9 +341,8 @@ if (state-&gt;registration_count_[signal_number] == 1) { # if defined(BOOST_ASIO_HAS_SIGACTION) - using namespace std; // For memset. struct sigaction sa; - memset(&amp;sa, 0, sizeof(sa)); + std::memset(&amp;sa, 0, sizeof(sa)); sa.sa_handler = SIG_DFL; if (::sigaction(signal_number, &amp;sa, 0) == -1) # else // defined(BOOST_ASIO_HAS_SIGACTION) @@ -396,9 +394,8 @@ if (state-&gt;registration_count_[reg-&gt;signal_number_] == 1) { # if defined(BOOST_ASIO_HAS_SIGACTION) - using namespace std; // For memset. struct sigaction sa; - memset(&amp;sa, 0, sizeof(sa)); + std::memset(&amp;sa, 0, sizeof(sa)); sa.sa_handler = SIG_DFL; if (::sigaction(reg-&gt;signal_number_, &amp;sa, 0) == -1) # else // defined(BOOST_ASIO_HAS_SIGACTION) </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11003 Trac 1.4.3