Purge ‘using namespace std’ from header files
std::bind and boost::lambda::bind don’t mix. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
|
||||
using namespace std;
|
||||
using std::string;
|
||||
|
||||
long int myatoi( char *str );
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "crypto.h"
|
||||
|
||||
using namespace Crypto;
|
||||
using namespace std;
|
||||
|
||||
int main( int argc, char *argv[] )
|
||||
{
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "crypto.h"
|
||||
|
||||
using namespace Crypto;
|
||||
using namespace std;
|
||||
|
||||
int main( int argc, char *argv[] )
|
||||
{
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "terminaloverlay.h"
|
||||
|
||||
using namespace Overlay;
|
||||
using std::max;
|
||||
|
||||
bool ConditionalOverlay::start_clock( uint64_t local_frame_acked, uint64_t now, unsigned int send_interval )
|
||||
{
|
||||
|
||||
@@ -28,7 +28,10 @@
|
||||
namespace Overlay {
|
||||
using namespace Terminal;
|
||||
using namespace Network;
|
||||
using namespace std;
|
||||
using std::deque;
|
||||
using std::list;
|
||||
using std::vector;
|
||||
using std::wstring;
|
||||
|
||||
enum Validity {
|
||||
Pending,
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
|
||||
#include "crypto.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace Crypto;
|
||||
|
||||
namespace Network {
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
#include "transportsender.h"
|
||||
#include "transportfragment.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace Network {
|
||||
template <class MyState, class RemoteState>
|
||||
|
||||
@@ -25,7 +25,8 @@
|
||||
|
||||
#include "transportinstruction.pb.h"
|
||||
|
||||
using namespace std;
|
||||
using std::vector;
|
||||
using std::string;
|
||||
using namespace TransportBuffers;
|
||||
|
||||
namespace Network {
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "transportfragment.h"
|
||||
|
||||
using namespace Network;
|
||||
using namespace std;
|
||||
|
||||
template <class MyState>
|
||||
TransportSender<MyState>::TransportSender( Connection *s_connection, MyState &initial_state )
|
||||
|
||||
@@ -28,7 +28,8 @@
|
||||
#include "transportstate.h"
|
||||
#include "transportfragment.h"
|
||||
|
||||
using namespace std;
|
||||
using std::list;
|
||||
using std::pair;
|
||||
using namespace TransportBuffers;
|
||||
|
||||
namespace Network {
|
||||
|
||||
@@ -26,7 +26,9 @@
|
||||
|
||||
#include "parseraction.h"
|
||||
|
||||
using namespace std;
|
||||
using std::deque;
|
||||
using std::list;
|
||||
using std::string;
|
||||
|
||||
namespace Network {
|
||||
enum UserEventType {
|
||||
|
||||
Reference in New Issue
Block a user