boost::shared_dynamic_cast is deprecated and removed in recent versions of boost...
authorGerd von Egidy <gerd.von.egidy@intra2net.com>
Thu, 2 Apr 2015 15:28:27 +0000 (17:28 +0200)
committerGerd von Egidy <gerd.von.egidy@intra2net.com>
Thu, 2 Apr 2015 15:28:27 +0000 (17:28 +0200)
configlib/i2n_global_config.cpp
src/pointer_func.hpp

index 6b9198c..fc2cf11 100644 (file)
@@ -372,7 +372,7 @@ FlowerShop seymour(FlowerShop shop, const FeedFunction& feed)
         // no shop; no coordinates; no useful stuff to do...
         return shop;
     }
-    HideOutPtr ptr = boost::shared_dynamic_cast< HideOut >(shop);
+    HideOutPtr ptr = boost::dynamic_pointer_cast< HideOut >(shop);
     if (!ptr)
     {
         // again, no coordinates...
@@ -397,7 +397,7 @@ FlowerShop seymour(FlowerShop shop, const FeedFunction2& feed)
         // no shop; no coordinates; no useful stuff to do...
         return shop;
     }
-    HideOutPtr ptr = boost::shared_dynamic_cast< HideOut >(shop);
+    HideOutPtr ptr = boost::dynamic_pointer_cast< HideOut >(shop);
     if (!ptr)
     {
         // again, no coordinates...
index 1e394be..dde564b 100644 (file)
@@ -99,7 +99,7 @@ class SharedBase
             }
             if (ptr)
             {
-                result= boost::shared_dynamic_cast< T >(ptr);
+                result= boost::dynamic_pointer_cast< T >(ptr);
             }
             return result;
         } // eo get_ptr_as