head 1.2; access; symbols pkgsrc-2015Q1:1.1.0.16 pkgsrc-2015Q1-base:1.1 pkgsrc-2014Q4:1.1.0.14 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.12 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.10 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.8 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.6 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.4 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.2 pkgsrc-2013Q2-base:1.1; locks; strict; comment @// @; 1.2 date 2015.05.31.14.00.12; author wen; state dead; branches; next 1.1; commitid F9154chebkBMvBny; 1.1 date 2013.06.13.14.28.38; author joerg; state Exp; branches; next ; commitid GG66hlfHFz8xIsTw; desc @@ 1.2 log @Update to 0.15.0 No upstream changelog found. @ text @$NetBSD: patch-src_which__nearest.cpp,v 1.1 2013/06/13 14:28:38 joerg Exp $ --- src/which_nearest.cpp.orig 2013-06-12 19:51:17.000000000 +0000 +++ src/which_nearest.cpp @@@@ -185,7 +185,7 @@@@ extern "C" copy( delta.begin(), delta.end(), - std::vector::iterator ( REAL( VECTOR_ELT( result, 0 ) ) ) + REAL( VECTOR_ELT( result, 0 ) ) ); for( i = 0; i < tn; i++ ) { @@@@ -195,7 +195,7 @@@@ extern "C" ); copy( which[i].begin(), which[i].end(), - std::vector::iterator ( INTEGER( VECTOR_ELT( VECTOR_ELT( result, 1 ), i ) ) ) + INTEGER( VECTOR_ELT( VECTOR_ELT( result, 1 ), i ) ) ); SET_VECTOR_ELT( VECTOR_ELT( result, 2 ), i, @@@@ -203,7 +203,7 @@@@ extern "C" ); copy( indices[i].begin(), indices[i].end(), - std::vector::iterator ( INTEGER( VECTOR_ELT( VECTOR_ELT( result, 2 ), i ) ) ) + INTEGER( VECTOR_ELT( VECTOR_ELT( result, 2 ), i ) ) ); } @ 1.1 log @There is no portable way to derive vector iterators from pointers, so just use the pointers directly. @ text @d1 1 a1 1 $NetBSD$ @