
"Felipe Magno de Almeida" <felipe.m.almeida@gmail.com> wrote in message news:a2b17b60607301016y69e3ffdew3525f1449893e28d@mail.gmail.com...
On 7/30/06, Gennadiy Rozental <gennadiy.rozental@thomson.com> wrote:
[snipped]
Interestingly, the first two tests fail, while the last two pass.
BOOST_CHECK(L"A" == m_mmf.SetLngGetString(1033, 1));
BOOST_CHECK(m_mmf.SetLngGetString(1033, 1) == L"A" );
This actually perform pointers comparizons and almost never produce true.
I dont think you can actually be sure about this, since we can't know if SetLngGetString doesnt return a std::wstring or some other type that has implicit conversion from wchar_t.
Wouldn't you remove the rest of the original message, you would see that it does return wchar_t const*.
where m_mmf.SetLngGetString(1033, 1) returns a const wchar_t* type.
Gennaadiy