Skip to content

Commit

Permalink
Compiles and runs
Browse files Browse the repository at this point in the history
Failing ContextCleanupTest.VerifyContextDtor
  • Loading branch information
gtremper committed Aug 1, 2014
1 parent 0c76af8 commit 36cf6d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions autowiring/CoreContext.h
Expand Up @@ -673,12 +673,11 @@ class CoreContext:
template<typename MemFn>
InvokeRelay<MemFn> Invoke(MemFn memFn){
typedef typename Decompose<MemFn>::type EventType;
typedef typename SelectTypeUnifier<EventType>::type UnifiedType;

if (!std::is_same<AutowiringEvents,EventType>::value)
GetGlobal()->Invoke(&AutowiringEvents::EventFired)(*this, typeid(EventType));

return MakeInvokeRelay(GetJunctionBox<UnifiedType>(), memFn);
return MakeInvokeRelay(GetJunctionBox<EventType>(), memFn);
}

/// <summary>
Expand Down
4 changes: 3 additions & 1 deletion autowiring/JunctionBox.h
Expand Up @@ -145,7 +145,9 @@ class JunctionBox:
fn(*currentEvent.m_ptr, args...);
} catch(...) {
teardown.push_back(ContextDumbToWeak(currentEvent.m_owner));
this->FilterFiringException(currentEvent.m_ptr);

typedef typename SelectTypeUnifier<T>::type ObjectBase_t;
this->FilterFiringException(autowiring::fast_pointer_cast<ObjectBase_t>(currentEvent.m_ptr));
}
lk.lock();

Expand Down

0 comments on commit 36cf6d6

Please sign in to comment.