diff --git a/include/sol/stack_get_unqualified.hpp b/include/sol/stack_get_unqualified.hpp index 4c475661..375cc369 100644 --- a/include/sol/stack_get_unqualified.hpp +++ b/include/sol/stack_get_unqualified.hpp @@ -982,9 +982,9 @@ namespace sol { namespace stack { #if defined(SOL_STD_VARIANT) && SOL_STD_VARIANT template struct unqualified_getter> { - using V = std::variant; - - static V get_one(std::integral_constant, lua_State* L, int index, record& tracking) { + using V = std::variant; + + static V get_one(std::integral_constant>, lua_State* L, int index, record& tracking) { (void)L; (void)index; (void)tracking; @@ -1000,17 +1000,17 @@ namespace sol { namespace stack { template static V get_one(std::integral_constant, lua_State* L, int index, record& tracking) { - typedef std::variant_alternative_t T; + typedef std::variant_alternative_t T; record temp_tracking = tracking; if (stack::check(L, index, no_panic, temp_tracking)) { tracking = temp_tracking; - return V(std::in_place_index, stack::get(L, index)); + return V(std::in_place_index, stack::get(L, index)); } - return get_one(std::integral_constant(), L, index, tracking); + return get_one(std::integral_constant(), L, index, tracking); } static V get(lua_State* L, int index, record& tracking) { - return get_one(std::integral_constant>(), L, index, tracking); + return get_one(std::integral_constant(), L, index, tracking); } }; #endif // SOL_STD_VARIANT diff --git a/include/sol/unsafe_function.hpp b/include/sol/unsafe_function.hpp index 8cb700ac..e2b3ac51 100644 --- a/include/sol/unsafe_function.hpp +++ b/include/sol/unsafe_function.hpp @@ -49,7 +49,7 @@ namespace sol { return stack::pop>(lua_state()); } - template + template >> = meta::enabler> Ret invoke(types, std::index_sequence, std::ptrdiff_t n) const { luacall(n, lua_size::value); return stack::pop(lua_state()); @@ -167,7 +167,7 @@ namespace sol { base_t::push(); } int pushcount = stack::multi_push_reference(lua_state(), std::forward(args)...); - return invoke(types(), std::make_index_sequence(), pushcount); + return invoke(types(), std::make_index_sequence(), static_cast(pushcount)); } }; } // namespace sol diff --git a/single/include/sol/forward.hpp b/single/include/sol/forward.hpp index 89c42b3e..aaadab16 100644 --- a/single/include/sol/forward.hpp +++ b/single/include/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 2019-07-01 09:44:31.228110 UTC -// This header was generated with sol v3.0.2 (revision 1ab57fc) +// Generated 2019-07-02 03:24:23.241852 UTC +// This header was generated with sol v3.0.2 (revision 52dc19a) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP diff --git a/single/include/sol/sol.hpp b/single/include/sol/sol.hpp index 0d6cbb32..db9c5521 100644 --- a/single/include/sol/sol.hpp +++ b/single/include/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 2019-07-01 09:44:30.937884 UTC -// This header was generated with sol v3.0.2 (revision 1ab57fc) +// Generated 2019-07-02 03:24:22.412862 UTC +// This header was generated with sol v3.0.2 (revision 52dc19a) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -12718,9 +12718,9 @@ namespace sol { namespace stack { #if defined(SOL_STD_VARIANT) && SOL_STD_VARIANT template struct unqualified_getter> { - using V = std::variant; - - static V get_one(std::integral_constant, lua_State* L, int index, record& tracking) { + using V = std::variant; + + static V get_one(std::integral_constant>, lua_State* L, int index, record& tracking) { (void)L; (void)index; (void)tracking; @@ -12736,17 +12736,17 @@ namespace sol { namespace stack { template static V get_one(std::integral_constant, lua_State* L, int index, record& tracking) { - typedef std::variant_alternative_t T; + typedef std::variant_alternative_t T; record temp_tracking = tracking; if (stack::check(L, index, no_panic, temp_tracking)) { tracking = temp_tracking; - return V(std::in_place_index, stack::get(L, index)); + return V(std::in_place_index, stack::get(L, index)); } - return get_one(std::integral_constant(), L, index, tracking); + return get_one(std::integral_constant(), L, index, tracking); } static V get(lua_State* L, int index, record& tracking) { - return get_one(std::integral_constant>(), L, index, tracking); + return get_one(std::integral_constant(), L, index, tracking); } }; #endif // SOL_STD_VARIANT @@ -18265,7 +18265,7 @@ namespace sol { return stack::pop>(lua_state()); } - template + template >> = meta::enabler> Ret invoke(types, std::index_sequence, std::ptrdiff_t n) const { luacall(n, lua_size::value); return stack::pop(lua_state()); @@ -18383,7 +18383,7 @@ namespace sol { base_t::push(); } int pushcount = stack::multi_push_reference(lua_state(), std::forward(args)...); - return invoke(types(), std::make_index_sequence(), pushcount); + return invoke(types(), std::make_index_sequence(), static_cast(pushcount)); } }; } // namespace sol