0

I have using the CCNumber repo found here in my Cocos2D-X application. The code

 inline int compare(const CCNumber<_typeT>* rhs)
 {
            return memcmp((void*)&m_type, (void*)&rhs->m_type, sizeof(_typeT));
 }

gives me an error

Invalid arguments '
Candidates are:
int memcmp(const void *, const void *, ?)

what am i doing wrong ?

AndroidDev
  • 15,993
  • 29
  • 85
  • 119

1 Answers1

0

Try following steps:

  1. Clean
  2. Refresh
  3. Rebuild project indexes

Edit: If this doesn't fix the problem. Try disabling Code Analysis as mentioned here

Community
  • 1
  • 1
nomann
  • 2,257
  • 2
  • 21
  • 24