X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FSafeBool.hh;h=ff10e58bcb41be488688bbf09dc3512d7bdbe0fa;hb=cb10487f67b404334eaffa60f074b8eca8f871de;hp=02f4151f5e464dafe495881bc663d741ee7dc575;hpb=31d85cd6b8e03c5ecc924ca8892906be1bab702f;p=senf.git diff --git a/Utils/SafeBool.hh b/Utils/SafeBool.hh index 02f4151..ff10e58 100644 --- a/Utils/SafeBool.hh +++ b/Utils/SafeBool.hh @@ -79,7 +79,7 @@ namespace senf { SafeBool to safe_bool (I tend to the latter ...) */ template - class SafeBool + class ComparableSafeBool : public SafeBoolBase { public: @@ -87,9 +87,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 +116,5 @@ namespace senf { // indent-tabs-mode: nil // ispell-local-dictionary: "american" // compile-command: "scons -u test" +// comment-column: 40 // End: