Bump version number. Remove bogus copyright line. Don't distribute the kdevelop proje...
[synfig.git] / ETL / trunk / ETL / _smart_ptr.h
index 4609880..479c966 100644 (file)
@@ -178,19 +178,6 @@ public:
 
        pointer operator->()const { assert(obj); return obj; }
 
-       //! Overloaded cast operator -- useful for implicit casts
-       template <class U>
-       operator smart_ptr<U>()
-       {
-               // This next line should provide a syntax check
-               // to make sure that this cast makes sense.
-               // If it doesn't, this should have a compiler error.
-               // Otherwise, it should get optimized right out
-               // of the code.
-               //(U*)obj;
-
-               return *reinterpret_cast<smart_ptr<U>*>(this);
-       }
 
        operator smart_ptr<const value_type>()const
        { return smart_ptr<const value_type>(static_cast<const_pointer>(obj)); }
@@ -217,6 +204,20 @@ public:
 
        bool operator!()const { return !obj; }
 
+       //! Overloaded cast operator -- useful for implicit casts
+       template <class U>
+       operator smart_ptr<U>()
+       {
+               // This next line should provide a syntax check
+               // to make sure that this cast makes sense.
+               // If it doesn't, this should have a compiler error.
+               // Otherwise, it should get optimized right out
+               // of the code.
+               //(U*)obj;
+
+               return *reinterpret_cast<smart_ptr<U>*>(this);
+       }
+
 }; // END of template class smart_ptr
 
 // ========================================================================