Skip to content

Commit 427d2d3

Browse files
authored
Drop namespace std (#3067)
Solve build error when compiling with GCC 15.
1 parent c43417f commit 427d2d3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tools/python/src/sequence_segmenter.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Copyright (C) 2013 Davis E. King ([email protected])
22
// License: Boost Software License See LICENSE.txt for the full license.
33

4+
#include <string>
45
#include "opaque_types.h"
56
#include <dlib/python.h>
67
#include <dlib/matrix.h>
78
#include <dlib/svm_threaded.h>
89

910
using namespace dlib;
10-
using namespace std;
1111
namespace py = pybind11;
1212

1313
typedef matrix<double,0,1> dense_vect;
@@ -277,9 +277,9 @@ struct segmenter_params
277277
};
278278

279279

280-
string segmenter_params__str__(const segmenter_params& p)
280+
std::string segmenter_params__str__(const segmenter_params& p)
281281
{
282-
ostringstream sout;
282+
std::ostringstream sout;
283283
if (p.use_BIO_model)
284284
sout << "BIO,";
285285
else
@@ -307,9 +307,9 @@ string segmenter_params__str__(const segmenter_params& p)
307307
return trim(sout.str());
308308
}
309309

310-
string segmenter_params__repr__(const segmenter_params& p)
310+
std::string segmenter_params__repr__(const segmenter_params& p)
311311
{
312-
ostringstream sout;
312+
std::ostringstream sout;
313313
sout << "<";
314314
sout << segmenter_params__str__(p);
315315
sout << ">";

0 commit comments

Comments
 (0)