mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Fix bug with sol::object not being copyable
This commit is contained in:
parent
bec0406ce6
commit
c59fc9e536
|
@ -27,7 +27,7 @@
|
|||
#include "stack.hpp"
|
||||
|
||||
namespace sol {
|
||||
class function : virtual public reference {
|
||||
class function : public reference {
|
||||
private:
|
||||
void luacall (std::size_t argcount, std::size_t resultcount) {
|
||||
lua_call(state(), static_cast<uint32_t>(argcount), static_cast<uint32_t>(resultcount));
|
||||
|
|
|
@ -22,11 +22,11 @@
|
|||
#ifndef SOL_OBJECT_HPP
|
||||
#define SOL_OBJECT_HPP
|
||||
|
||||
#include "table.hpp"
|
||||
#include "function.hpp"
|
||||
#include "reference.hpp"
|
||||
#include "stack.hpp"
|
||||
|
||||
namespace sol {
|
||||
class object : public table, public function {
|
||||
class object : public reference {
|
||||
public:
|
||||
object(lua_State* L, int index = -1): reference(L, index) {}
|
||||
object() = default;
|
||||
|
|
|
@ -40,7 +40,7 @@ T* get_ptr(T* val) {
|
|||
}
|
||||
} // detail
|
||||
|
||||
class table : virtual public reference {
|
||||
class table : public reference {
|
||||
template<typename Table, typename T> struct proxy;
|
||||
public:
|
||||
table() noexcept : reference() {}
|
||||
|
|
Loading…
Reference in New Issue
Block a user