title: Pointer to class member function of template parameter
body: <p>Hi I have a problem to compile my class in XCode, gcc(Apple LLVM compiler 3.0)
  I wrote class ContextSchedule it means class which encapsulates list of other class member functions and have no problem to compile it under MSVC++ 2005.</p>
  
  <pre><code>template&lt;class T&gt;
  class C_ContextScheduler
  {
  public:
      typedef void (T::*T_EventFunc)();
      typedef std::map&lt;u64, T_EventFunc&gt;  T_EventMap;
  
  public:
      //@ c-tor
      C_ContextScheduler(T &amp; context) : m_Context(context), m_currentTick(0) {};
  
      //@ Schedule
      //@ funcPtr - pointer to function of class T
      //@ dellayTime in milliseconds - after dellayTime from now will be funcPtr called
      void    Schedule(T_EventFunc funcPtr, u32 dellayTime)
      {
          u64 callingTime = m_currentTick + dellayTime;
          std::pair&lt;int, bool&gt; res = m_eventMap.insert(T_EventMap::value_type(callingTime, funcPtr));
          SC_ASSERT(res.second);
      }  ...
  </code></pre>
  
  <p>Any ideas? Want preserve template way of this solution, thnx.</p>