X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FSafeBool.cti;h=a1d4bc094d1ae67924e61a8f7ff904dfd81b92e7;hb=cb10487f67b404334eaffa60f074b8eca8f871de;hp=f223f7524bae42ee50a2a3fde21c919ed2f9ebf1;hpb=ac6a813d9d99f7add4e13aff7a4bcd314d5604a6;p=senf.git diff --git a/Utils/SafeBool.cti b/Utils/SafeBool.cti index f223f75..a1d4bc0 100644 --- a/Utils/SafeBool.cti +++ b/Utils/SafeBool.cti @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Definition of inline template functions @@ -12,28 +12,28 @@ ///////////////////////////////cti.p/////////////////////////////////////// template -prefix_ senf::SafeBool::operator bool_type() +prefix_ senf::ComparableSafeBool::operator bool_type() const { return (static_cast(this))->boolean_test() - ? &SafeBoolBase::this_type_does_not_support_comparisons : 0; + ? &SafeBoolBase::this_type_does_not_support_comparisons : 0; } template -prefix_ bool senf::SafeBool::operator!() +prefix_ bool senf::ComparableSafeBool::operator!() const { return ! (static_cast(this))->boolean_test(); } template -prefix_ senf::SafeBool::~SafeBool() +prefix_ senf::ComparableSafeBool::~ComparableSafeBool() {} template prefix_ void senf::operator==(const SafeBool& lhs, const SafeBool& rhs) { - lhs.this_type_does_not_support_comparisons(); + lhs.this_type_does_not_support_comparisons(); } template @@ -48,4 +48,10 @@ prefix_ void senf::operator!=(const SafeBool& lhs, const SafeBool& rhs) // Local Variables: // mode: c++ +// fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: