boost::shared_dynamic_cast is deprecated and removed in recent versions of boost...
[libi2ncommon] / configlib / i2n_global_config.cpp
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...