X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FSafeBool.hh;h=7781e1dfbb65ffbb6edd1efc9f79e305e101fda9;hb=1f3b4447179d0cd771037d02b9a5671eeaaaec8d;hp=02f4151f5e464dafe495881bc663d741ee7dc575;hpb=31d85cd6b8e03c5ecc924ca8892906be1bab702f;p=senf.git diff --git a/Utils/SafeBool.hh b/Utils/SafeBool.hh index 02f4151..7781e1d 100644 --- a/Utils/SafeBool.hh +++ b/Utils/SafeBool.hh @@ -1,6 +1,25 @@ -// $Id$ +// Copyright (C) 2007 +// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) +// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) +// Stefan Bund // -// Copyright (C) 2006 +// 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 +98,7 @@ namespace senf { SafeBool to safe_bool (I tend to the latter ...) */ template - class SafeBool + class ComparableSafeBool : public SafeBoolBase { public: @@ -87,9 +106,12 @@ namespace senf { bool operator !() const; protected: - ~SafeBool(); + ~ComparableSafeBool(); }; + template + class SafeBool : public ComparableSafeBool {}; + template void operator==(const SafeBool& lhs,const SafeBool& rhs); @@ -113,4 +135,5 @@ namespace senf { // indent-tabs-mode: nil // ispell-local-dictionary: "american" // compile-command: "scons -u test" +// comment-column: 40 // End: