Bump version number. Remove bogus copyright line. Don't distribute the kdevelop proje...
[synfig.git] / ETL / trunk / ETL / _handle.h
index 0cf5af2..317f6c2 100644 (file)
@@ -257,14 +257,14 @@ public:
        operator->()const
                { assert(obj); return obj; }
 
-       //! static_cast<> overload -- Useful for implicit casts
-       template <class U>
-       operator handle<U>()const
-       { return handle<U>(static_cast<U*>(obj)); }
+       //! More explicit bool cast
+       operator bool()const
+               { return obj!=NULL; }
 
        operator handle<const value_type>()const
        { return handle<const value_type>(static_cast<const_pointer>(obj)); }
 
+
        //! <tt> static_cast\<\> </tt> wrapper
        template <class U> static
        handle<T> cast_static(const handle<U> &x)
@@ -303,13 +303,14 @@ public:
        //! Returns pointer to the object that is being wrapped
        pointer get()const { return obj; }
 
-       //! More explicit bool cast
-       operator bool()const
-               { return obj!=NULL; }
-
        bool
        operator!()const
                { return !obj; }
+
+       //! static_cast<> overload -- Useful for implicit casts
+       template <class U>
+       operator handle<U>()const
+       { return handle<U>(static_cast<U*>(obj)); }
 }; // END of template class handle
 
 // ========================================================================