From 0a4178cf5103f60a4027a51151ba3dd1730ca4de Mon Sep 17 00:00:00 2001 From: Gerd von Egidy Date: Thu, 2 Apr 2015 17:28:27 +0200 Subject: [PATCH] boost::shared_dynamic_cast is deprecated and removed in recent versions of boost, replace it with dynamic_pointer_cast --- configlib/i2n_global_config.cpp | 4 ++-- src/pointer_func.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 1.7.1