svn:keywords property set
[senf.git] / Utils / SafeBool.hh
index 129f6d2..ff10e58 100644 (file)
@@ -79,7 +79,7 @@ namespace senf {
         SafeBool to safe_bool (I tend to the latter ...)
      */
     template <typename T>
-    class SafeBool
+    class ComparableSafeBool
         : public SafeBoolBase
     {
     public:
@@ -87,9 +87,12 @@ namespace senf {
         bool operator !() const;
 
     protected:
-        ~SafeBool();
+        ~ComparableSafeBool();
     };
 
+    template <typename T>
+    class SafeBool : public ComparableSafeBool<T> {};
+
     template <typename T, typename U>
     void operator==(const SafeBool<T>& lhs,const SafeBool<U>& rhs);