head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.2 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.2.0.6 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.4 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q3:1.2.0.2 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.1.0.8 pkgsrc-2012Q2-base:1.1 pkgsrc-2012Q1:1.1.0.6 pkgsrc-2012Q1-base:1.1 pkgsrc-2011Q4:1.1.0.4 pkgsrc-2011Q4-base:1.1 pkgsrc-2011Q3:1.1.0.2 pkgsrc-2011Q3-base:1.1; locks; strict; comment @# @; 1.3 date 2013.04.10.16.20.21; author drochner; state dead; branches; next 1.2; 1.2 date 2012.08.10.18.02.13; author joerg; state Exp; branches; next 1.1; 1.1 date 2011.09.12.06.33.11; author dholland; state Exp; branches; next ; desc @@ 1.3 log @update to 0.8.7 changes: compilation fixes @ text @$NetBSD: patch-tvector_h,v 1.2 2012/08/10 18:02:13 joerg Exp $ - C++ tweaks to appease clang --- tvector.h.orig 2006-09-21 21:17:07.000000000 +0000 +++ tvector.h @@@@ -58,9 +58,9 @@@@ class tvector: public tvector_base { // new functionality /// append an element to the end - const tvector& operator += (const T& a) { push_back(a); return *this; } + const tvector& operator += (const T& a) { this->push_back(a); return *this; } /// append another tvector to the end - const tvector& operator += (const tvector& a) { insert(tvector_base::end(), a.tvector_base::begin(), a.tvector_base::end()); return *this; } + const tvector& operator += (const tvector& a) { this->insert(tvector_base::end(), a.tvector_base::begin(), a.tvector_base::end()); return *this; } /// direct read only access, safe const T& operator[](size_t i) const { if(i < tvector_base::size()) return tvector_base::operator[](i); else throw TZeroBasedIndexOutOfRangeException(i, tvector_base::size()); } // throw(TZeroBasedIndexOutOfRangeException); /// direct read/write access, automatically create new elements @ 1.2 log @Really fix template lookup. @ text @d1 1 a1 1 $NetBSD: patch-tvector_h,v 1.1 2011/09/12 06:33:11 dholland Exp $ @ 1.1 log @Tweak the C++ to hopefully appease clang. @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- tvector.h~ 2006-09-21 21:17:07.000000000 +0000 d7 3 a9 1 @@@@ -60,7 +60,7 @@@@ class tvector: public tvector_base { d11 2 a12 1 const tvector& operator += (const T& a) { push_back(a); return *this; } d15 1 a15 1 + const tvector& operator += (const tvector& a) { tvector_base::insert(tvector_base::end(), a.tvector_base::begin(), a.tvector_base::end()); return *this; } @