mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Found the problem.
This commit is contained in:
parent
c5863c8c31
commit
2beb13b9b2
|
@ -1,7 +1,5 @@
|
|||
#define SOL_ALL_SAFETIES_ON 1
|
||||
#include <sol/sol.hpp>
|
||||
#include <iostream>
|
||||
#include <exception>
|
||||
|
||||
// We capture the base objects
|
||||
// lifetime style
|
||||
|
|
|
@ -189,16 +189,6 @@ namespace sol { namespace stack {
|
|||
}
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct unqualified_pusher<detail::as_unique_tag<T>> {
|
||||
template <typename... Args>
|
||||
static int push (lua_State* L, Args&&... args) {
|
||||
stack_detail::uu_pusher<T> p;
|
||||
(void)p;
|
||||
return p.push(L, std::forward<Args>(args)...);
|
||||
}
|
||||
};
|
||||
|
||||
namespace stack_detail {
|
||||
template <typename T>
|
||||
struct uu_pusher {
|
||||
|
@ -246,6 +236,16 @@ namespace sol { namespace stack {
|
|||
};
|
||||
} // namespace stack_detail
|
||||
|
||||
template <typename T>
|
||||
struct unqualified_pusher<detail::as_unique_tag<T>> {
|
||||
template <typename... Args>
|
||||
static int push(lua_State* L, Args&&... args) {
|
||||
stack_detail::uu_pusher<T> p;
|
||||
(void)p;
|
||||
return p.push(L, std::forward<Args>(args)...);
|
||||
}
|
||||
};
|
||||
|
||||
template <typename T, typename>
|
||||
struct unqualified_pusher {
|
||||
template <typename... Args>
|
||||
|
|
|
@ -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 2020-01-25 01:16:25.945664 UTC
|
||||
// This header was generated with sol v3.2.0 (revision 5301bc1)
|
||||
// Generated 2020-01-25 04:59:37.808053 UTC
|
||||
// This header was generated with sol v3.2.0 (revision c5863c8)
|
||||
// https://github.com/ThePhD/sol2
|
||||
|
||||
#ifndef SOL_SINGLE_INCLUDE_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 2020-01-25 01:16:25.151902 UTC
|
||||
// This header was generated with sol v3.2.0 (revision 5301bc1)
|
||||
// Generated 2020-01-25 04:59:35.996014 UTC
|
||||
// This header was generated with sol v3.2.0 (revision c5863c8)
|
||||
// https://github.com/ThePhD/sol2
|
||||
|
||||
#ifndef SOL_SINGLE_INCLUDE_HPP
|
||||
|
@ -13276,16 +13276,6 @@ namespace sol { namespace stack {
|
|||
}
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct unqualified_pusher<detail::as_unique_tag<T>> {
|
||||
template <typename... Args>
|
||||
static int push (lua_State* L, Args&&... args) {
|
||||
stack_detail::uu_pusher<T> p;
|
||||
(void)p;
|
||||
return p.push(L, std::forward<Args>(args)...);
|
||||
}
|
||||
};
|
||||
|
||||
namespace stack_detail {
|
||||
template <typename T>
|
||||
struct uu_pusher {
|
||||
|
@ -13333,6 +13323,16 @@ namespace sol { namespace stack {
|
|||
};
|
||||
} // namespace stack_detail
|
||||
|
||||
template <typename T>
|
||||
struct unqualified_pusher<detail::as_unique_tag<T>> {
|
||||
template <typename... Args>
|
||||
static int push(lua_State* L, Args&&... args) {
|
||||
stack_detail::uu_pusher<T> p;
|
||||
(void)p;
|
||||
return p.push(L, std::forward<Args>(args)...);
|
||||
}
|
||||
};
|
||||
|
||||
template <typename T, typename>
|
||||
struct unqualified_pusher {
|
||||
template <typename... Args>
|
||||
|
|
Loading…
Reference in New Issue
Block a user