From 72fe0a5a312491c143bd702e85452c2cce553133 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Mon, 13 Mar 2017 17:45:54 -0400 Subject: [PATCH] remove `std::move` from items --- sol/table_core.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sol/table_core.hpp b/sol/table_core.hpp index ed85d210..8004ebd2 100644 --- a/sol/table_core.hpp +++ b/sol/table_core.hpp @@ -263,7 +263,7 @@ namespace sol { template basic_table_core& new_usertype(const std::string& name, Args&&... args) { usertype utype(std::forward(args)...); - set_usertype(name, std::move(utype)); + set_usertype(name, utype); return *this; } @@ -276,7 +276,7 @@ namespace sol { template basic_table_core& new_usertype(const std::string& name, constructors ctor, Args&&... args) { usertype utype(ctor, std::forward(args)...); - set_usertype(name, std::move(utype)); + set_usertype(name, utype); return *this; }