X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FSafeBool.hh;h=ff10e58bcb41be488688bbf09dc3512d7bdbe0fa;hb=83df9651fac5af034774ff9314ee18eeb8a5ec2a;hp=129f6d271e81664cf3c410160804f667b667a38a;hpb=145f6a7d0f3a6aaa77b3625351c952d24cb0b8a1;p=senf.git diff --git a/Utils/SafeBool.hh b/Utils/SafeBool.hh index 129f6d2..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);