File: 06_fix-missing-std-namespace.patch

package info (click to toggle)
neuron 8.2.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,760 kB
  • sloc: cpp: 149,571; python: 58,465; ansic: 50,329; sh: 3,510; xml: 213; pascal: 51; makefile: 35; sed: 5
file content (91 lines) | stat: -rw-r--r-- 1,939 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
From 22b852e2ab3d09b295a6d34fa429f5f25473a3fa Mon Sep 17 00:00:00 2001
From: Matthias Klumpp <mak@debian.org>
Date: Sun, 4 May 2025 23:16:24 +0200
Subject: [PATCH] Fix missing std namespace usages

Unsure why this works upstream and fails here, potentially our
newer GCC version is more strict or there is some include-chain
upstream with patched vendored code that masks the issue there.
This needs further investigation.

---
 src/ivoc/epsprint.cpp | 2 ++
 src/ivoc/ivoc.h       | 1 +
 2 files changed, 3 insertions(+)

--- a/src/ivoc/ivoc.h
+++ b/src/ivoc/ivoc.h
@@ -10,6 +10,7 @@
 #include "gui-redirect.h"
 extern int nrn_err_dialog_active_;
 
+using namespace std;
 
 #ifdef MINGW
 extern bool nrn_is_gui_thread();
--- a/src/ivoc/epsprint.h
+++ b/src/ivoc/epsprint.h
@@ -3,6 +3,8 @@
 
 #include <InterViews/printer.h>
 
+using namespace std;
+
 class EPSPrinter: public Printer {
   public:
     EPSPrinter(ostream*);
--- a/src/ivoc/idraw.h
+++ b/src/ivoc/idraw.h
@@ -11,6 +11,8 @@
 class Color;
 class Brush;
 
+using namespace std;
+
 class OcIdraw {
   public:
     static void prologue();
--- a/src/ivoc/ocbox.h
+++ b/src/ivoc/ocbox.h
@@ -8,6 +8,8 @@
 class BoxAdjust;
 struct Object;
 
+using namespace std;
+
 class OcBox: public OcGlyphContainer {
   public:
     enum { H, V };
--- a/src/ivoc/ocdeck.h
+++ b/src/ivoc/ocdeck.h
@@ -7,6 +7,8 @@
 class OcDeckImpl;
 struct Object;
 
+using namespace std;
+
 class OcDeck: public OcGlyphContainer {
   public:
     OcDeck();
--- a/src/ivoc/axis.h
+++ b/src/ivoc/axis.h
@@ -6,6 +6,8 @@
 
 class Scene;
 
+using namespace std;
+
 class Axis: public Glyph, public Observer {
   public:
     Axis(Scene*, DimensionName);
--- a/src/ivoc/xmenu.h
+++ b/src/ivoc/xmenu.h
@@ -42,6 +42,8 @@
 class ScenePicker;
 struct HocSymExtension;
 
+using namespace std;
+
 declarePtrList(HocUpdateItemList, HocUpdateItem)
 declarePtrList(HocItemList, HocItem)
 declarePtrList(HocPanelList, HocPanel)