X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FSafeBool.cti;h=bdf32c27e577e9bf0848ea4b66ff2fc9646651bd;hb=9a988902090d28007578e93bffd809f6bd913155;hp=603ae8aefd2eb445d2d3cf2afec34f2728ec58c2;hpb=9248350bdd5a59799e603936d98241a1bb4591f9;p=senf.git diff --git a/Utils/SafeBool.cti b/Utils/SafeBool.cti index 603ae8a..bdf32c2 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,32 +12,32 @@ ///////////////////////////////cti.p/////////////////////////////////////// template -prefix_ satcom::lib::SafeBool::operator bool_type() +prefix_ senf::SafeBool::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 satcom::lib::SafeBool::operator!() +prefix_ bool senf::SafeBool::operator!() const { return ! (static_cast(this))->boolean_test(); } template -prefix_ satcom::lib::SafeBool::~SafeBool() +prefix_ senf::SafeBool::~SafeBool() {} template -prefix_ void satcom::lib::operator==(const SafeBool& lhs, const SafeBool& rhs) +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 -prefix_ void satcom::lib::operator!=(const SafeBool& lhs, const SafeBool& rhs) +prefix_ void senf::operator!=(const SafeBool& lhs, const SafeBool& rhs) { lhs.this_type_does_not_support_comparisons(); } @@ -48,4 +48,8 @@ prefix_ void satcom::lib::operator!=(const SafeBool& lhs, const SafeBool& // Local Variables: // mode: c++ +// fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" // End: