X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FSafeBool.hh;h=eb116da1f2676db6edecc36d845c6f12a3031c9f;hb=81ffa1c459b96dd44472bcef37e1e373934ee138;hp=c0b7163f0983f319da540e0a8b56fc4452d6964d;hpb=98f3f38c5872d26fcf544a9d28efe0518e3895e2;p=senf.git diff --git a/Utils/SafeBool.hh b/Utils/SafeBool.hh index c0b7163..eb116da 100644 --- a/Utils/SafeBool.hh +++ b/Utils/SafeBool.hh @@ -1,6 +1,27 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2007 +// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) +// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) +// Stefan Bund +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the +// Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +/** \file + \brief SafeBool public header */ #ifndef HH_SafeBool_ #define HH_SafeBool_ 1 @@ -79,7 +100,7 @@ namespace senf { SafeBool to safe_bool (I tend to the latter ...) */ template - class SafeBool + class ComparableSafeBool : public SafeBoolBase { public: @@ -87,9 +108,12 @@ namespace senf { bool operator !() const; protected: - ~SafeBool(); + ~ComparableSafeBool(); }; + template + class SafeBool : public ComparableSafeBool {}; + template void operator==(const SafeBool& lhs,const SafeBool& rhs); @@ -112,4 +136,6 @@ namespace senf { // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: