diff --git a/sol/function.hpp b/sol/function.hpp index 2707e97b..f037fd07 100644 --- a/sol/function.hpp +++ b/sol/function.hpp @@ -63,7 +63,7 @@ public: template void operator()(Args&&... args) { - call<>(std::forward(args)...); + call<>(std::forward(args)...); } template diff --git a/sol/traits.hpp b/sol/traits.hpp index 26d71634..994dff81 100644 --- a/sol/traits.hpp +++ b/sol/traits.hpp @@ -73,58 +73,58 @@ struct function_traits; template struct function_traits { - static const std::size_t arity = sizeof...(Args); - static const bool is_member_function = true; - typedef std::tuple arg_tuple_type; - typedef types args_type; - typedef R(T::* function_pointer_type)(Args...); - typedef typename std::remove_pointer::type function_type; - typedef R(*free_function_pointer_type)(Args...); - typedef R return_type; - template - using arg = typename std::tuple_element::type; + static const std::size_t arity = sizeof...(Args); + static const bool is_member_function = true; + typedef std::tuple arg_tuple_type; + typedef types args_type; + typedef R(T::* function_pointer_type)(Args...); + typedef typename std::remove_pointer::type function_type; + typedef R(*free_function_pointer_type)(Args...); + typedef R return_type; + template + using arg = typename std::tuple_element::type; }; template struct function_traits { - static const std::size_t arity = sizeof...(Args); - static const bool is_member_function = true; - typedef std::tuple arg_tuple_type; - typedef types args_type; - typedef R(T::* function_pointer_type)(Args...); - typedef typename std::remove_pointer::type function_type; - typedef R(*free_function_pointer_type)(Args...); - typedef R return_type; - template - using arg = typename std::tuple_element::type; + static const std::size_t arity = sizeof...(Args); + static const bool is_member_function = true; + typedef std::tuple arg_tuple_type; + typedef types args_type; + typedef R(T::* function_pointer_type)(Args...); + typedef typename std::remove_pointer::type function_type; + typedef R(*free_function_pointer_type)(Args...); + typedef R return_type; + template + using arg = typename std::tuple_element::type; }; template struct function_traits { - static const std::size_t arity = sizeof...(Args); - static const bool is_member_function = false; - typedef std::tuple arg_tuple_type; - typedef types args_type; - typedef R(function_type)(Args...); - typedef R(*function_pointer_type)(Args...); - typedef R(*free_function_pointer_type)(Args...); - typedef R return_type; - template - using arg = typename std::tuple_element::type; + static const std::size_t arity = sizeof...(Args); + static const bool is_member_function = false; + typedef std::tuple arg_tuple_type; + typedef types args_type; + typedef R(function_type)(Args...); + typedef R(*function_pointer_type)(Args...); + typedef R(*free_function_pointer_type)(Args...); + typedef R return_type; + template + using arg = typename std::tuple_element::type; }; template struct function_traits { - static const std::size_t arity = sizeof...(Args); - static const bool is_member_function = false; - typedef std::tuple arg_tuple_type; - typedef types args_type; - typedef R(function_type)(Args...); - typedef R(*function_pointer_type)(Args...); - typedef R(*free_function_pointer_type)(Args...); - typedef R return_type; - template - using arg = typename std::tuple_element::type; + static const std::size_t arity = sizeof...(Args); + static const bool is_member_function = false; + typedef std::tuple arg_tuple_type; + typedef types args_type; + typedef R(function_type)(Args...); + typedef R(*function_pointer_type)(Args...); + typedef R(*free_function_pointer_type)(Args...); + typedef R return_type; + template + using arg = typename std::tuple_element::type; }; } // sol