From a4a4d2137682cfe75fc77d7f1ac6c2d294ac5deb Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 3 Dec 2013 01:20:31 -0500 Subject: [PATCH] Allow polymorphic object class to handle sol::function --- sol/object.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sol/object.hpp b/sol/object.hpp index 9f743392..0bb7dde2 100644 --- a/sol/object.hpp +++ b/sol/object.hpp @@ -23,9 +23,10 @@ #define SOL_OBJECT_HPP #include "table.hpp" +#include "function.hpp" namespace sol { -class object : public table { +class object : public table, public function { public: object(lua_State* L, int index = -1): reference(L, index) {} object() = default;