2121#include < loki/HierarchyGenerators.h>
2222#include " xrServer_Object_Base.h"
2323
24- template <typename _1 , typename _2 >
25- struct heritage
24+ template <typename _type , typename _base >
25+ struct linear_registrator : public _base , public _type
2626{
27- template <typename _type, typename _base>
28- struct linear_registrator : public _base , public _type
29- {
30- };
27+ };
3128
32- template <typename _type>
33- struct linear_registrator <_type, Loki::EmptyType> : public _type
34- {
35- };
29+ template <typename _type>
30+ struct linear_registrator <_type, Loki::EmptyType> : public _type
31+ {
32+ };
3633
37- typedef Loki::Typelist<_1, Loki::Typelist<_2, Loki::EmptyType>> tl;
38- typedef typename Loki::TL::Erase<tl, Loki::EmptyType>::Result pure_tl;
39- typedef typename Loki::GenLinearHierarchy<pure_tl, linear_registrator> result;
34+ template <typename _1, typename _2>
35+ struct heritage
36+ {
37+ using tl = Loki::Typelist<_1, _2>;
38+ using result = Loki::GenLinearHierarchy<tl, linear_registrator>;
4039};
4140
4241template <typename base>
@@ -46,7 +45,7 @@ class FactoryObjectWrapperTpl : public heritage<base, luabind::wrap_base>::resul
4645 IC FactoryObjectWrapperTpl (){};
4746 virtual ~FactoryObjectWrapperTpl (){};
4847
49- virtual IFactoryObject* _construct () { return (call_member<IFactoryObject*>(this , " _construct" )); }
48+ virtual IFactoryObject* _construct () { return (luabind:: call_member<IFactoryObject*>(this , " _construct" )); }
5049 static IFactoryObject* _construct_static (base* self) { return (self->base ::_construct ()); }
5150private:
5251 // not exported
0 commit comments