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

トップ ページ
このメッセージを削除
著者: Thorsten Schöning
日付:  
To: pcre-dev
題目: [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 #23 from Thorsten Schöning <tschoening@???> 2010-11-23 09:19:46 ---
(In reply to comment #22)
> 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?


Yes, i added it before using std::string.

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


Doesn't work either, at least not without using std::memcmp;. What does work is
to neither include string.h nor cstring and just add using std::memcmp;. This
does work in both BCB 5 and 6, only that it does work in BCB 5 even without
using std::memcmp and without including string.h.

Seems tricky...


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