From b588f6296e1ddcafe340b5ea87b00177c94be561 Mon Sep 17 00:00:00 2001 From: Daniel Wallin Date: Wed, 4 Feb 2009 12:29:45 +0100 Subject: [PATCH] Use mpl::vector instead of mpl::list in class_<>. IIRC we used mpl::list<> here because of some VC6 bug. This isn't relevant any more, so it's better to just use mpl::vector<>. --- luabind/class.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/luabind/class.hpp b/luabind/class.hpp index e9a3529..ba25deb 100644 --- a/luabind/class.hpp +++ b/luabind/class.hpp @@ -81,7 +81,6 @@ #include #include #include -#include #include #include #include @@ -881,15 +880,17 @@ namespace luabind public: + typedef boost::mpl::vector3 parameters_type; + // WrappedType MUST inherit from T typedef typename detail::extract_parameter< - boost::mpl::vector3 + parameters_type , boost::is_base_and_derived , detail::null_type >::type WrappedType; typedef typename detail::extract_parameter< - boost::mpl::list3 + parameters_type , boost::mpl::not_< boost::mpl::or_< boost::mpl::or_< @@ -1128,7 +1129,7 @@ namespace luabind void init() { typedef typename detail::extract_parameter< - boost::mpl::list3 + parameters_type , boost::mpl::or_< detail::is_bases , boost::is_base_and_derived -- 2.11.4.GIT