diff --git a/include/chaiscript/dispatchkit/boxed_value.hpp b/include/chaiscript/dispatchkit/boxed_value.hpp index 528c8c7e..e36c6091 100644 --- a/include/chaiscript/dispatchkit/boxed_value.hpp +++ b/include/chaiscript/dispatchkit/boxed_value.hpp @@ -438,6 +438,21 @@ namespace dispatchkit } }; + /** + * Cast_Helper for casting to a boost::shared_ptr<> type + */ + template + struct Cast_Helper &> + { + typedef typename boost::shared_ptr Result_Type; + + static Result_Type cast(const Boxed_Value &ob) + { + return boost::any_cast >(ob.get()); + } + }; + + /** * Cast_Helper for casting to a Boxed_Value type