From: bert hubert Date: Thu, 19 Feb 2015 08:45:55 +0000 (+0100) Subject: support unions too in Luawrapper X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~88^2~139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc45746ecfd1d8826560441cf2df0cc2a621da41;p=thirdparty%2Fpdns.git support unions too in Luawrapper --- diff --git a/pdns/ext/luawrapper/include/LuaContext.hpp b/pdns/ext/luawrapper/include/LuaContext.hpp index b4bb19fec2..e58e5d1551 100644 --- a/pdns/ext/luawrapper/include/LuaContext.hpp +++ b/pdns/ext/luawrapper/include/LuaContext.hpp @@ -1041,7 +1041,7 @@ private: template void registerFunctionImpl(const std::string& functionName, TFunctionType function, tag, tag) { - static_assert(std::is_class::value || std::is_pointer::value, "registerFunction can only be used for a class or a pointer"); + static_assert(std::is_class::value || std::is_pointer::value || std::is_union::value , "registerFunction can only be used for a class or a pointer"); checkTypeRegistration(mState, &typeid(TObject)); setTable(mState, Registry, &typeid(TObject), 0, functionName, std::move(function));