Re: [pcre-dev] [Bug 1038] memcmp not available in pcrecpp_s…

トップ ページ
このメッセージを削除
著者: Craig Silverstein
日付:  
To: 1038
CC: pcre-dev
題目: Re: [pcre-dev] [Bug 1038] memcmp not available in pcrecpp_stringpiece.h compiling with BCB 6
} 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