Basic support for std::vector and related fixes

This commit is contained in:
Jason Turner
2009-06-07 00:00:46 +00:00
parent 4c317f5861
commit af221b611d
4 changed files with 46 additions and 21 deletions

View File

@@ -89,6 +89,20 @@ struct Cast_Helper<const Result &>
}
};
template<typename Result>
struct Cast_Helper<const Result *>
{
const Result *operator()(Boxed_Value ob)
{
if (ob.is_ref())
{
return (boost::any_cast<boost::reference_wrapper<Result> >(ob.get())).get_pointer();
} else {
return (boost::any_cast<boost::shared_ptr<Result> >(ob.get())).get();
}
}
};
template<typename Result>
struct Cast_Helper<Result *>
{