From ec020048fb4cb11f5d01cd62f86b9102c2ea6484 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Thu, 7 Dec 2017 09:36:12 -0500 Subject: [PATCH] i don't like you either std::array so lets agree not to be friends --- single/sol/sol.hpp | 7 ++++--- sol/container_traits.hpp | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/single/sol/sol.hpp b/single/sol/sol.hpp index 28fd3a95..50bc7a8f 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 2017-12-07 14:16:34.213850 UTC -// This header was generated with sol v2.18.7 (revision a86e9ee) +// Generated 2017-12-07 14:35:57.076918 UTC +// This header was generated with sol v2.18.7 (revision a99ea97) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -15002,7 +15002,8 @@ namespace sol { error_result(int results) : results(results), fmt(nullptr) { } - error_result(const char* fmt, const char* msg) : results(0), fmt(fmt), args({ msg, nullptr, nullptr, nullptr }) { + error_result(const char* fmt, const char* msg) : results(0), fmt(fmt) { + args[0] = msg; } }; diff --git a/sol/container_traits.hpp b/sol/container_traits.hpp index 4c9813a6..1375da9e 100644 --- a/sol/container_traits.hpp +++ b/sol/container_traits.hpp @@ -412,7 +412,8 @@ namespace sol { error_result(int results) : results(results), fmt(nullptr) { } - error_result(const char* fmt, const char* msg) : results(0), fmt(fmt), args({ msg, nullptr, nullptr, nullptr }) { + error_result(const char* fmt, const char* msg) : results(0), fmt(fmt) { + args[0] = msg; } };