remove std::move from items

This commit is contained in:
ThePhD 2017-03-13 17:45:54 -04:00
parent 30ecd7127a
commit 72fe0a5a31

View File

@ -263,7 +263,7 @@ namespace sol {
template<typename Class, typename... Args> template<typename Class, typename... Args>
basic_table_core& new_usertype(const std::string& name, Args&&... args) { basic_table_core& new_usertype(const std::string& name, Args&&... args) {
usertype<Class> utype(std::forward<Args>(args)...); usertype<Class> utype(std::forward<Args>(args)...);
set_usertype(name, std::move(utype)); set_usertype(name, utype);
return *this; return *this;
} }
@ -276,7 +276,7 @@ namespace sol {
template<typename Class, typename... CArgs, typename... Args> template<typename Class, typename... CArgs, typename... Args>
basic_table_core& new_usertype(const std::string& name, constructors<CArgs...> ctor, Args&&... args) { basic_table_core& new_usertype(const std::string& name, constructors<CArgs...> ctor, Args&&... args) {
usertype<Class> utype(ctor, std::forward<Args>(args)...); usertype<Class> utype(ctor, std::forward<Args>(args)...);
set_usertype(name, std::move(utype)); set_usertype(name, utype);
return *this; return *this;
} }