From 0c76af82c778126a53015ec89aaf95e85d576553 Mon Sep 17 00:00:00 2001 From: Graham Tremper Date: Thu, 31 Jul 2014 18:09:18 -0700 Subject: [PATCH] JunctionBoxEntry shouldn't have TypeUnifier internally --- autowiring/CoreContext.h | 3 ++- autowiring/JunctionBoxEntry.h | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/autowiring/CoreContext.h b/autowiring/CoreContext.h index 374c507f9..cdec6704e 100644 --- a/autowiring/CoreContext.h +++ b/autowiring/CoreContext.h @@ -673,11 +673,12 @@ class CoreContext: template InvokeRelay Invoke(MemFn memFn){ typedef typename Decompose::type EventType; + typedef typename SelectTypeUnifier::type UnifiedType; if (!std::is_same::value) GetGlobal()->Invoke(&AutowiringEvents::EventFired)(*this, typeid(EventType)); - return MakeInvokeRelay(GetJunctionBox(), memFn); + return MakeInvokeRelay(GetJunctionBox(), memFn); } /// diff --git a/autowiring/JunctionBoxEntry.h b/autowiring/JunctionBoxEntry.h index eb535729f..f173610bc 100644 --- a/autowiring/JunctionBoxEntry.h +++ b/autowiring/JunctionBoxEntry.h @@ -22,14 +22,12 @@ template struct JunctionBoxEntry: JunctionBoxEntryBase { - typedef typename SelectTypeUnifier::type EntryType_t; - JunctionBoxEntry(CoreContext* owner, std::shared_ptr ptr) : JunctionBoxEntryBase(owner), - m_ptr(autowiring::fast_pointer_cast(ptr)) + m_ptr(ptr) {} - std::shared_ptr m_ptr; + std::shared_ptr m_ptr; JunctionBoxEntry& operator=(const JunctionBoxEntry& rhs) { // This shouldn't be used. non-c++11 containers require this...