0 Replies Latest reply: Mar 13, 2009 1:05 AM by 807567 RSS

    function pointer on getting assigned with member function address...

    807567
      Hi All,
      We are migrating our product from HP-ia64 to SunOS Solaris 10 SPARC 32 bit.
      In the following piece of code,the member function pointer is not getting assigned by the member function address. Compilation is through without any warnings or error :

      _fptr = &APELog::WriteLogMsg;

      When I am trying to check , it is giving false :
      ==============================
      if (_fptr == &APELog::WriteLogMsg)
      printf("\nYES");
      else
      printf("\nNO");

      //Its always giving NO
      ==============================
      _fptr is defined as
      void (APELog::*_fptr)(long, const APELogMsg&);

      Can anyone help me on this issue ?