ports/math/qhull/files/patch-src_libqhullcpp_QhullSet.h
Stephen Montgomery-Smith bab9cd2877 - Add LICENCE, and small modification to description of error in
libqhullcpp_QhullSet.h.

PR:		ports/215078
Submitted by:	z7dr6ut7gs@snkmail.com
2016-12-12 02:46:23 +00:00

18 lines
672 B
C++

c++ 4.2 (in base 9.x) has a weakness that emits a bogus error:
/usr/ports/math/qhull/work/qhull-2015.2/src/libqhullcpp/QhullSet.h:330: error: expected `;' before 'i'
Work around that by removing overspecified part of type declaration (can remove after 9.x EOL).
--- src/libqhullcpp/QhullSet.h.orig 2016-01-18 19:45:12 UTC
+++ src/libqhullcpp/QhullSet.h
@@ -327,8 +327,8 @@ template <typename T>
std::vector<T> QhullSet<T>::
toStdVector() const
{
- QhullSet<T>::const_iterator i= begin();
- QhullSet<T>::const_iterator e= end();
+ const_iterator i= begin();
+ const_iterator e= end();
std::vector<T> vs;
while(i!=e){
vs.push_back(*i++);