mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
remove std::move
from items
This commit is contained in:
parent
30ecd7127a
commit
72fe0a5a31
|
@ -263,7 +263,7 @@ namespace sol {
|
|||
template<typename Class, typename... Args>
|
||||
basic_table_core& new_usertype(const std::string& name, Args&&... args) {
|
||||
usertype<Class> utype(std::forward<Args>(args)...);
|
||||
set_usertype(name, std::move(utype));
|
||||
set_usertype(name, utype);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
@ -276,7 +276,7 @@ namespace sol {
|
|||
template<typename Class, typename... CArgs, typename... Args>
|
||||
basic_table_core& new_usertype(const std::string& name, constructors<CArgs...> ctor, Args&&... args) {
|
||||
usertype<Class> utype(ctor, std::forward<Args>(args)...);
|
||||
set_usertype(name, std::move(utype));
|
||||
set_usertype(name, utype);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user