Control: tags -1 patch
Hi Maintainer
Please find patch adapted from upstream's commit [1] attached.
Regards
Graham
[1]
https://github.com/pcb2gcode/pcb2gcode/commit/e6580db4365c9f3ad42cea103382faeaf472800f
Description: Fix build with GCC5
Origin: upstream, https://github.com/pcb2gcode/pcb2gcode/commit/e6580db4365c9f3ad42cea103382faeaf472800f
Author: Nicola Corna <nic...@corna.info>
Last-Update: 2015-11-09
--- a/svg_exporter.cpp
+++ b/svg_exporter.cpp
@@ -20,7 +20,6 @@
#include <fstream>
#include <iomanip>
-using namespace std;
#include "svg_exporter.hpp"
@@ -112,4 +111,4 @@
SVG_Exporter::copy_page()
{
cr->copy_page();
-}
\ No newline at end of file
+}
--- a/drill.cpp
+++ b/drill.cpp
@@ -24,7 +24,6 @@
#include <fstream>
#include <iomanip>
-using namespace std;
#include "drill.hpp"
@@ -34,6 +33,10 @@
#include <boost/foreach.hpp>
using std::pair;
+using std::cerr;
+using std::ios_base;
+using std::setw;
+using std::left;
ExcellonProcessor::ExcellonProcessor( string drillfile, const ivalue_t board_width ) : board_width(board_width)
{
--- a/layer.cpp
+++ b/layer.cpp
@@ -11,7 +11,6 @@
}
#include <iostream>
-using namespace std;
vector< shared_ptr<icoords> >
Layer::get_toolpaths()
--- a/ngc_exporter.cpp
+++ b/ngc_exporter.cpp
@@ -22,8 +22,12 @@
#include <boost/foreach.hpp>
#include <iostream>
+using std::cerr;
+using std::ios_base;
+using std::setw;
+using std::left;
+
#include <iomanip>
-using namespace std;
NGC_Exporter::NGC_Exporter( shared_ptr<Board> board ) : Exporter(board)
{