Add generic vector support and example code for working with

This commit is contained in:
Jason Turner
2009-06-07 15:54:07 +00:00
parent 0ae57833aa
commit 2fa615974c
6 changed files with 54 additions and 1 deletions

View File

@@ -35,6 +35,24 @@ struct Handle_Return<Ret &>
}
};
template<>
struct Handle_Return<Boxed_Value>
{
Boxed_Value operator()(const boost::function<Boxed_Value ()> &f)
{
return f();
}
};
template<>
struct Handle_Return<Boxed_Value &>
{
Boxed_Value operator()(const boost::function<Boxed_Value &()> &f)
{
return f();
}
};
template<>
struct Handle_Return<void>
{