[pcre-dev] [Bug 1038] memcmp not available in pcrecpp_string…

Kezdőlap
Üzenet törlése
Szerző: Craig Silverstein
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] [Bug 1038] memcmp not available in pcrecpp_stringpiece.h compiling with BCB 6
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1038




--- Comment #22 from Craig Silverstein <csilvers@???> 2010-11-23 09:05:07 ---
} Doesn't work, what does work is using std::memcmp;, therefore it
} seems the following xould be part of the problem:

I suspected something like this might be part of the problem. I see
that there are various using declarations in the .h files, that may or
may not all resolve to 'using std::memcmp' (they were using macros).
Perhaps a using declaration caused us to shadow the one for std.

Do I understand you right that what you tried was keeping
pcre_stringpiece.h exactly as it was before, but putting
using std::memcmp;
after all the #includes?

What happens if you replace the #include of <string.h> with an
#include of <cstring>?

craig


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email