diff --git a/sol/types.hpp b/sol/types.hpp index c0a08284..f0d95dce 100644 --- a/sol/types.hpp +++ b/sol/types.hpp @@ -309,7 +309,7 @@ namespace sol { struct user { U value; - user(U x) + user(U&& x) : value(std::forward(x)) { } operator std::add_pointer_t>() {