From: Gerd von Egidy Date: Thu, 2 Apr 2015 15:28:27 +0000 (+0200) Subject: boost::shared_dynamic_cast is deprecated and removed in recent versions of boost... X-Git-Tag: v2.6~5 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=0a4178cf5103f60a4027a51151ba3dd1730ca4de;p=libi2ncommon boost::shared_dynamic_cast is deprecated and removed in recent versions of boost, replace it with dynamic_pointer_cast --- diff --git a/configlib/i2n_global_config.cpp b/configlib/i2n_global_config.cpp index 6b9198c..fc2cf11 100644 --- a/configlib/i2n_global_config.cpp +++ b/configlib/i2n_global_config.cpp @@ -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... diff --git a/src/pointer_func.hpp b/src/pointer_func.hpp index 1e394be..dde564b 100644 --- a/src/pointer_func.hpp +++ b/src/pointer_func.hpp @@ -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