View | Details | Raw Unified | Return to bug 207253 | Differences between
and this patch

Collapse All | Expand All

(-)files/patch-src_util__code_array.h (+25 lines)
Line 0 Link Here
1
Workaround for libc++, which declares std::array even if not in C++11 mode (see
2
ports/207253 for a bigger discussion).
3
--- src/util_code/array.h.orig	2016-02-25 10:29:49 UTC
4
+++ src/util_code/array.h
5
@@ -20,11 +20,12 @@
6
 #include <iostream>
7
 using namespace std;
8
 
9
+namespace openvsp {
10
+
11
 // Define Error Flags //
12
 #define BELOW_BOUNDS	0
13
 #define ABOVE_BOUNDS	1
14
 
15
-
16
 template<class Item_type>
17
 
18
 class array
19
@@ -328,5 +331,6 @@ void array<Item_type>::print_error_messa
20
 
21
 }
22
 
23
+}  // namespace openvsp
24
 
25
 #endif
(-)files/patch-src_vsp_af.cpp (+13 lines)
Line 0 Link Here
1
Workaround for libc++, which declares std::array even if not in C++11 mode (see
2
ports/207253 for a bigger discussion).
3
--- src/vsp/af.cpp.orig	2016-02-25 10:34:17 UTC
4
+++ src/vsp/af.cpp
5
@@ -1744,7 +1744,7 @@ vec3d Af::get_rounded_end_cap(int index)
6
 void Af::invert_airfoil()
7
 {
8
   int i;
9
-  array <double> z;
10
+  openvsp::array <double> z;
11
   z.init(num_pnts);
12
 
13
   //===== Switch Upper and Lower Z values =====
(-)files/patch-src_vsp_havoc__geom.cpp (+13 lines)
Line 0 Link Here
1
Workaround for libc++, which declares std::array even if not in C++11 mode (see
2
ports/207253 for a bigger discussion).
3
--- src/vsp/havoc_geom.cpp.orig	2016-02-25 10:35:42 UTC
4
+++ src/vsp/havoc_geom.cpp
5
@@ -428,7 +428,7 @@ void Havoc_geom::generate_planform_curve
6
   
7
   //==== Find Xsec Locations ====// 
8
   int num_xsecs = havoc_num_xsecs - 3;
9
-  array< double > tmp_x;
10
+  openvsp::array< double > tmp_x;
11
   tmp_x.init ( num_xsecs );
12
   
13
   for ( i = 0 ; i < num_xsecs ; i++ )
(-)files/patch-src_vsp_havoc__geom.h (+21 lines)
Line 0 Link Here
1
Workaround for libc++, which declares std::array even if not in C++11 mode (see
2
ports/207253 for a bigger discussion).
3
--- src/vsp/havoc_geom.h.orig	2016-02-25 10:33:52 UTC
4
+++ src/vsp/havoc_geom.h
5
@@ -88,11 +88,11 @@ class Havoc_geom : public Geom
6
    int havoc_num_xsecs;
7
    int havoc_num_pnts;
8
    
9
-   array< double > x_locs;
10
-   array< double > left;
11
-   array< double > right;
12
-   array< double > upper;
13
-   array< double > lower;
14
+   openvsp::array< double > x_locs;
15
+   openvsp::array< double > left;
16
+   openvsp::array< double > right;
17
+   openvsp::array< double > upper;
18
+   openvsp::array< double > lower;
19
  
20
    Parm length;
21
    

Return to bug 207253