Make sure type_info works with shared_ptr &

This commit is contained in:
Jason Turner
2016-03-28 15:57:26 -06:00
parent 46c45e8fc7
commit c07c2a9cc2
2 changed files with 6 additions and 0 deletions

View File

@@ -162,6 +162,11 @@ namespace chaiscript
}
};
template<typename T>
struct Get_Type_Info<std::shared_ptr<T> &> : Get_Type_Info<std::shared_ptr<T>>
{
};
template<typename T>
struct Get_Type_Info<const std::shared_ptr<T> &>
{