diff --git a/single/sol/sol.hpp b/single/sol/sol.hpp index a834b7df..c8bbf5c2 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-02-22 19:49:01.759217 UTC -// This header was generated with sol v2.19.4 (revision f7f94a4) +// Generated 2018-02-22 23:33:52.230658 UTC +// This header was generated with sol v2.19.4 (revision e8a8da0) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -17141,10 +17141,15 @@ namespace sol { template > = meta::enabler> inline void make_length_op(Regs& l, int& index) { + const char* name = to_string(meta_function::length).c_str(); +#ifdef __clang__ + l[index] = luaL_Reg{ name, &c_call }; +#else typedef decltype(std::declval().size()) R; using sz_func = R(T::*)()const; const char* name = to_string(meta_function::length).c_str(); l[index] = luaL_Reg{ name, &c_call(&T::size)), static_cast(&T::size)> }; +#endif ++index; } diff --git a/single/sol/sol_forward.hpp b/single/sol/sol_forward.hpp index 9ba03cb2..9ac22ffc 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-02-22 19:49:02.041252 UTC -// This header was generated with sol v2.19.4 (revision f7f94a4) +// Generated 2018-02-22 23:33:52.546198 UTC +// This header was generated with sol v2.19.4 (revision e8a8da0) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP