diff --git a/single/sol/sol.hpp b/single/sol/sol.hpp index 6df2a1799..5501d6a98 100644 --- a/single/sol/sol.hpp +++ b/single/sol/sol.hpp @@ -20,8 +20,8 @@ // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // This file was generated with a script. -// Generated 2018-07-29 18:04:21.688310 UTC -// This header was generated with sol v2.20.4 (revision d01d49a) +// Generated 2018-08-04 15:01:07.072485 UTC +// This header was generated with sol v2.20.4 (revision 92fa032) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -5625,6 +5625,12 @@ namespace sol { template class V, typename T, typename... Args> struct accumulate : accumulate::value, V, Args...> {}; + + template class V, typename List> + struct accumulate_list; + + template class V, typename... Args> + struct accumulate_list> : accumulate {}; } // namespace detail template @@ -5731,9 +5737,9 @@ namespace sol { public: typedef std::integral_constant::value != 0> runtime_variadics_t; static const std::size_t true_arity = base_t::arity; - static const std::size_t arity = base_t::arity - meta::count_for::value; + static const std::size_t arity = detail::accumulate_list::value - meta::count_for::value; static const std::size_t true_free_arity = base_t::free_arity; - static const std::size_t free_arity = base_t::free_arity - meta::count_for::value; + static const std::size_t free_arity = detail::accumulate_list::value - meta::count_for::value; }; template @@ -8249,9 +8255,9 @@ namespace stack { if (!success) { // expected type, actual type #if defined(SOL_STRINGS_ARE_NUMBERS) && SOL_STRINGS_ARE_NUMBERS - handler(L, index, type::number, t, "not a numeric type"); -#else handler(L, index, type::number, type_of(L, index), "not a numeric type or numeric string"); +#else + handler(L, index, type::number, t, "not a numeric type"); #endif } return success; diff --git a/single/sol/sol_forward.hpp b/single/sol/sol_forward.hpp index f60623efb..c6773db8a 100644 --- a/single/sol/sol_forward.hpp +++ b/single/sol/sol_forward.hpp @@ -20,8 +20,8 @@ // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // This file was generated with a script. -// Generated 2018-07-29 18:04:22.074805 UTC -// This header was generated with sol v2.20.4 (revision d01d49a) +// Generated 2018-08-04 15:01:07.320824 UTC +// This header was generated with sol v2.20.4 (revision 92fa032) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP