Several tests and fixes related to type conversions added. Still more to go.

This commit is contained in:
Jason Turner
2010-10-08 15:18:58 +00:00
parent c3da778103
commit 3f87210dc5
5 changed files with 112 additions and 74 deletions

View File

@@ -235,7 +235,7 @@ namespace chaiscript
}
}
boost::any get() const
const boost::any & get() const
{
return m_data->m_obj;
}
@@ -282,7 +282,7 @@ namespace chaiscript
template<typename T>
Boxed_Value const_var(T *t)
{
return Boxed_Value( const_cast<typename boost::add_const<T>::type>(t) );
return Boxed_Value( const_cast<typename boost::add_const<T>::type *>(t) );
}
template<typename T>