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.12; 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-tmap_h,v 1.2 2012/08/10 18:02:12 joerg Exp $ - C++ tweaks to appease clang --- tmap.h.orig 2006-09-21 21:17:07.000000000 +0000 +++ tmap.h @@@@ -54,11 +54,11 @@@@ class tmap: public tmap_base { // new functionality /// return whether an element with key is contained or not - bool contains(const K& key) const { return find(key) != tmap_base::end(); } + bool contains(const K& key) const { return this->find(key) != this->end(); } /// access element read only (const) // g++ 2.95.2 does not allow this: // const T& operator[](const K& key) const { const_iterator i = find(key); if(i != end()) return i->second; else throw TNotFoundException(); } // throw(TNotFoundException) - const T& operator[](const K& key) const { if(contains(key)) return find(key)->second; else throw TNotFoundException(); } // throw(TNotFoundException) + const T& operator[](const K& key) const { if(contains(key)) return this->find(key)->second; else throw TNotFoundException(); } // throw(TNotFoundException) }; @ 1.2 log @Really fix template lookup. @ text @d1 1 a1 1 $NetBSD: patch-tmap_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 --- tmap.h~ 2006-09-21 21:17:07.000000000 +0000 d7 1 a7 1 @@@@ -54,7 +54,7 @@@@ class tmap: public tmap_base { d12 1 a12 1 + bool contains(const K& key) const { return tmap_base::find(key) != tmap_base::end(); } d16 5 @