From c58d27e58d2a00fdfdb73bf18887de2fd4c353d8 Mon Sep 17 00:00:00 2001 From: RaptorFactor Date: Thu, 26 Jan 2017 03:30:46 -0800 Subject: [PATCH] Work around clang-cl compilation issue. --- single/sol/sol.hpp | 10 +++++----- sol/tie.hpp | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/single/sol/sol.hpp b/single/sol/sol.hpp index 01755d5e..ed9d7645 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-01-10 04:24:27.805667 UTC -// This header was generated with sol v2.15.7 (revision 490194f) +// Generated 2017-01-26 01:38:28.868453 UTC +// This header was generated with sol v2.15.7 (revision 5b12924) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -793,7 +793,7 @@ namespace sol { #ifdef SOL_USING_CXX_LUA #include #include -#include +#include #else #include #endif // C++-compiler Lua @@ -4128,7 +4128,7 @@ namespace sol { void set_extra(std::true_type, std::index_sequence, T&& target) { using std::get; (void)detail::swallow{ 0, - (get(*this) = get(types(), target), 0)... + (get(static_cast(*this)) = get(types(), target), 0)... , 0 }; } @@ -4136,7 +4136,7 @@ namespace sol { void set_extra(std::false_type, std::index_sequence, T&& target) { using std::get; (void)detail::swallow{ 0, - (get(*this) = get(target), 0)... + (get(static_cast(*this)) = get(target), 0)... , 0 }; } diff --git a/sol/tie.hpp b/sol/tie.hpp index fc3ec155..9157ed00 100644 --- a/sol/tie.hpp +++ b/sol/tie.hpp @@ -60,7 +60,7 @@ namespace sol { void set_extra(std::true_type, std::index_sequence, T&& target) { using std::get; (void)detail::swallow{ 0, - (get(*this) = get(types(), target), 0)... + (get(static_cast(*this)) = get(types(), target), 0)... , 0 }; } @@ -68,7 +68,7 @@ namespace sol { void set_extra(std::false_type, std::index_sequence, T&& target) { using std::get; (void)detail::swallow{ 0, - (get(*this) = get(target), 0)... + (get(static_cast(*this)) = get(target), 0)... , 0 }; }