GCC 4.6 fixes to cleanups

This commit is contained in:
Jason Turner
2014-10-05 14:58:27 -06:00
parent f547b4bb10
commit 935e9de19e
3 changed files with 13 additions and 12 deletions

View File

@@ -123,11 +123,12 @@ namespace chaiscript
template<typename T>
static std::shared_ptr<Data> get(std::reference_wrapper<T> obj)
{
auto p = &obj.get();
return std::make_shared<Data>(
detail::Get_Type_Info<T>::get(),
chaiscript::detail::Any(obj),
chaiscript::detail::Any(std::move(obj)),
true,
&obj.get()
p
);
}