FreeBSD Bugzilla – Attachment 167391 Details for
Bug 207253
cad/openvsp: Fix in 11-CURRENT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Enclose array in a namespace
openvsp-libcxx.diff (text/plain), 4.33 KB, created by
Raphael Kubo da Costa
on 2016-02-25 10:43:26 UTC
(
hide
)
Description:
Enclose array in a namespace
Filename:
MIME Type:
Creator:
Raphael Kubo da Costa
Created:
2016-02-25 10:43:26 UTC
Size:
4.33 KB
patch
obsolete
>Index: files/patch-src_util__code_array.h >=================================================================== >--- files/patch-src_util__code_array.h (nonexistent) >+++ files/patch-src_util__code_array.h (working copy) >@@ -0,0 +1,25 @@ >+Workaround for libc++, which declares std::array even if not in C++11 mode (see >+ports/207253 for a bigger discussion). >+--- src/util_code/array.h.orig 2016-02-25 10:29:49 UTC >++++ src/util_code/array.h >+@@ -20,11 +20,12 @@ >+ #include <iostream> >+ using namespace std; >+ >++namespace openvsp { >++ >+ // Define Error Flags // >+ #define BELOW_BOUNDS 0 >+ #define ABOVE_BOUNDS 1 >+ >+- >+ template<class Item_type> >+ >+ class array >+@@ -328,5 +331,6 @@ void array<Item_type>::print_error_messa >+ >+ } >+ >++} // namespace openvsp >+ >+ #endif > >Property changes on: files/patch-src_util__code_array.h >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: files/patch-src_vsp_af.cpp >=================================================================== >--- files/patch-src_vsp_af.cpp (nonexistent) >+++ files/patch-src_vsp_af.cpp (working copy) >@@ -0,0 +1,13 @@ >+Workaround for libc++, which declares std::array even if not in C++11 mode (see >+ports/207253 for a bigger discussion). >+--- src/vsp/af.cpp.orig 2016-02-25 10:34:17 UTC >++++ src/vsp/af.cpp >+@@ -1744,7 +1744,7 @@ vec3d Af::get_rounded_end_cap(int index) >+ void Af::invert_airfoil() >+ { >+ int i; >+- array <double> z; >++ openvsp::array <double> z; >+ z.init(num_pnts); >+ >+ //===== Switch Upper and Lower Z values ===== > >Property changes on: files/patch-src_vsp_af.cpp >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: files/patch-src_vsp_havoc__geom.cpp >=================================================================== >--- files/patch-src_vsp_havoc__geom.cpp (nonexistent) >+++ files/patch-src_vsp_havoc__geom.cpp (working copy) >@@ -0,0 +1,13 @@ >+Workaround for libc++, which declares std::array even if not in C++11 mode (see >+ports/207253 for a bigger discussion). >+--- src/vsp/havoc_geom.cpp.orig 2016-02-25 10:35:42 UTC >++++ src/vsp/havoc_geom.cpp >+@@ -428,7 +428,7 @@ void Havoc_geom::generate_planform_curve >+ >+ //==== Find Xsec Locations ====// >+ int num_xsecs = havoc_num_xsecs - 3; >+- array< double > tmp_x; >++ openvsp::array< double > tmp_x; >+ tmp_x.init ( num_xsecs ); >+ >+ for ( i = 0 ; i < num_xsecs ; i++ ) > >Property changes on: files/patch-src_vsp_havoc__geom.cpp >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: files/patch-src_vsp_havoc__geom.h >=================================================================== >--- files/patch-src_vsp_havoc__geom.h (nonexistent) >+++ files/patch-src_vsp_havoc__geom.h (working copy) >@@ -0,0 +1,21 @@ >+Workaround for libc++, which declares std::array even if not in C++11 mode (see >+ports/207253 for a bigger discussion). >+--- src/vsp/havoc_geom.h.orig 2016-02-25 10:33:52 UTC >++++ src/vsp/havoc_geom.h >+@@ -88,11 +88,11 @@ class Havoc_geom : public Geom >+ int havoc_num_xsecs; >+ int havoc_num_pnts; >+ >+- array< double > x_locs; >+- array< double > left; >+- array< double > right; >+- array< double > upper; >+- array< double > lower; >++ openvsp::array< double > x_locs; >++ openvsp::array< double > left; >++ openvsp::array< double > right; >++ openvsp::array< double > upper; >++ openvsp::array< double > lower; >+ >+ Parm length; >+ > >Property changes on: files/patch-src_vsp_havoc__geom.h >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
rakuco
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 207253
:
167088
|
167089
|
167090
|
167091
| 167391 |
167408
|
167409