Remove the last occurrences of "using namespace std"

This commit is contained in:
Chris Cannam
2023-01-10 11:04:50 +00:00
parent e28651acd0
commit 549906e033
7 changed files with 23 additions and 8 deletions

View File

@@ -77,7 +77,8 @@
#define BQ_R__ R__ #define BQ_R__ R__
using namespace std; using std::cerr;
using std::endl;
namespace RubberBand { namespace RubberBand {

View File

@@ -33,7 +33,10 @@
#include "../common/sysutils.h" #include "../common/sysutils.h"
using namespace RubberBand; using namespace RubberBand;
using namespace std;
using std::vector;
using std::string;
namespace tt = boost::test_tools; namespace tt = boost::test_tools;
// We use the symbols H, X, and _ for harmonic, percussive, and // We use the symbols H, X, and _ for harmonic, percussive, and

View File

@@ -33,9 +33,13 @@
#include <cmath> #include <cmath>
#include <iostream> #include <iostream>
using namespace std;
using namespace RubberBand; using namespace RubberBand;
using std::cerr;
using std::endl;
using std::vector;
BOOST_AUTO_TEST_SUITE(TestResampler) BOOST_AUTO_TEST_SUITE(TestResampler)
#define LEN(a) (int(sizeof(a)/sizeof(a[0]))) #define LEN(a) (int(sizeof(a)/sizeof(a[0])))

View File

@@ -31,7 +31,9 @@
#include "../finer/Peak.h" #include "../finer/Peak.h"
using namespace RubberBand; using namespace RubberBand;
using namespace std;
using std::vector;
namespace tt = boost::test_tools; namespace tt = boost::test_tools;
BOOST_AUTO_TEST_SUITE(TestSignalBits) BOOST_AUTO_TEST_SUITE(TestSignalBits)

View File

@@ -31,7 +31,12 @@
#include <iostream> #include <iostream>
using namespace RubberBand; using namespace RubberBand;
using namespace std;
using std::cerr;
using std::endl;
using std::vector;
namespace tt = boost::test_tools; namespace tt = boost::test_tools;
static Log cerrLog( static Log cerrLog(

View File

@@ -33,7 +33,9 @@
#include <cmath> #include <cmath>
using namespace RubberBand; using namespace RubberBand;
using namespace std;
using std::vector;
namespace tt = boost::test_tools; namespace tt = boost::test_tools;
BOOST_AUTO_TEST_SUITE(TestStretcher) BOOST_AUTO_TEST_SUITE(TestStretcher)

View File

@@ -35,8 +35,6 @@
using namespace RubberBand; using namespace RubberBand;
using namespace std;
BOOST_AUTO_TEST_SUITE(TestVectorOpsComplex) BOOST_AUTO_TEST_SUITE(TestVectorOpsComplex)
#ifdef USE_APPROXIMATE_ATAN2 #ifdef USE_APPROXIMATE_ATAN2