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 <string.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
using namespace std;
|
using std::string;
|
||||||
|
|
||||||
long int myatoi( char *str );
|
long int myatoi( char *str );
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
#include "crypto.h"
|
#include "crypto.h"
|
||||||
|
|
||||||
using namespace Crypto;
|
using namespace Crypto;
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
int main( int argc, char *argv[] )
|
int main( int argc, char *argv[] )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
#include "crypto.h"
|
#include "crypto.h"
|
||||||
|
|
||||||
using namespace Crypto;
|
using namespace Crypto;
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
int main( int argc, char *argv[] )
|
int main( int argc, char *argv[] )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
#include "terminaloverlay.h"
|
#include "terminaloverlay.h"
|
||||||
|
|
||||||
using namespace Overlay;
|
using namespace Overlay;
|
||||||
|
using std::max;
|
||||||
|
|
||||||
bool ConditionalOverlay::start_clock( uint64_t local_frame_acked, uint64_t now, unsigned int send_interval )
|
bool ConditionalOverlay::start_clock( uint64_t local_frame_acked, uint64_t now, unsigned int send_interval )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -28,7 +28,10 @@
|
|||||||
namespace Overlay {
|
namespace Overlay {
|
||||||
using namespace Terminal;
|
using namespace Terminal;
|
||||||
using namespace Network;
|
using namespace Network;
|
||||||
using namespace std;
|
using std::deque;
|
||||||
|
using std::list;
|
||||||
|
using std::vector;
|
||||||
|
using std::wstring;
|
||||||
|
|
||||||
enum Validity {
|
enum Validity {
|
||||||
Pending,
|
Pending,
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
|
|
||||||
#include "crypto.h"
|
#include "crypto.h"
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
using namespace Crypto;
|
using namespace Crypto;
|
||||||
|
|
||||||
namespace Network {
|
namespace Network {
|
||||||
|
|||||||
@@ -29,7 +29,6 @@
|
|||||||
#include "transportsender.h"
|
#include "transportsender.h"
|
||||||
#include "transportfragment.h"
|
#include "transportfragment.h"
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
namespace Network {
|
namespace Network {
|
||||||
template <class MyState, class RemoteState>
|
template <class MyState, class RemoteState>
|
||||||
|
|||||||
@@ -25,7 +25,8 @@
|
|||||||
|
|
||||||
#include "transportinstruction.pb.h"
|
#include "transportinstruction.pb.h"
|
||||||
|
|
||||||
using namespace std;
|
using std::vector;
|
||||||
|
using std::string;
|
||||||
using namespace TransportBuffers;
|
using namespace TransportBuffers;
|
||||||
|
|
||||||
namespace Network {
|
namespace Network {
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
#include "transportfragment.h"
|
#include "transportfragment.h"
|
||||||
|
|
||||||
using namespace Network;
|
using namespace Network;
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
template <class MyState>
|
template <class MyState>
|
||||||
TransportSender<MyState>::TransportSender( Connection *s_connection, MyState &initial_state )
|
TransportSender<MyState>::TransportSender( Connection *s_connection, MyState &initial_state )
|
||||||
|
|||||||
@@ -28,7 +28,8 @@
|
|||||||
#include "transportstate.h"
|
#include "transportstate.h"
|
||||||
#include "transportfragment.h"
|
#include "transportfragment.h"
|
||||||
|
|
||||||
using namespace std;
|
using std::list;
|
||||||
|
using std::pair;
|
||||||
using namespace TransportBuffers;
|
using namespace TransportBuffers;
|
||||||
|
|
||||||
namespace Network {
|
namespace Network {
|
||||||
|
|||||||
@@ -26,7 +26,9 @@
|
|||||||
|
|
||||||
#include "parseraction.h"
|
#include "parseraction.h"
|
||||||
|
|
||||||
using namespace std;
|
using std::deque;
|
||||||
|
using std::list;
|
||||||
|
using std::string;
|
||||||
|
|
||||||
namespace Network {
|
namespace Network {
|
||||||
enum UserEventType {
|
enum UserEventType {
|
||||||
|
|||||||
Reference in New Issue
Block a user