Add test for constructing from a pointer return value and fix test so it works. Task #13

This commit is contained in:
Jason Turner
2011-09-09 14:38:55 -06:00
parent 2b64c90a0e
commit e326fe6f2d
2 changed files with 18 additions and 0 deletions

View File

@@ -34,6 +34,15 @@ namespace chaiscript
}
};
template<typename Ret>
struct Handle_Return<Ret *>
{
static Boxed_Value handle(Ret *p)
{
return Boxed_Value(p);
}
};
template<typename Ret>
struct Handle_Return<boost::shared_ptr<Ret> &>
{