X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FSafeBool.hh;h=ff10e58bcb41be488688bbf09dc3512d7bdbe0fa;hb=3d5b1045dc2531f239a3af4a8f3b17b1fe31549c;hp=c0b7163f0983f319da540e0a8b56fc4452d6964d;hpb=98f3f38c5872d26fcf544a9d28efe0518e3895e2;p=senf.git diff --git a/Utils/SafeBool.hh b/Utils/SafeBool.hh index c0b7163..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); @@ -112,4 +115,6 @@ namespace senf { // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: