Skip to content

Commit

Permalink
move some template complexity to typedefs, fix gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
gorlak committed Sep 10, 2013
1 parent 129c6ff commit 8a65b30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MetaStruct.inl
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ Helium::Reflect::Method* Helium::Reflect::MetaStruct::AddMethod( void (Structure
Method* m = AllocateMethod();
m->m_Name = name;
m->m_Translator = Reflect::AllocateTranslator< ArgumentT >();
m->m_Delegate = reinterpret_cast< Delegate< void* >::DelegateImpl* >( new Delegate< ArgumentT& >::Method< StructureT >( NULL, method ) );
typedef typename Delegate< void* >::DelegateImpl VoidDelegateT;
typedef typename Delegate< ArgumentT& >::template Method< StructureT > DelegateMethodT;
m->m_Delegate = reinterpret_cast< VoidDelegateT* >( new DelegateMethodT( NULL, method ) );
return m;
}

Expand Down

0 comments on commit 8a65b30

Please sign in to comment.