[Libreoffice] hash and char * hashes the pointer not the string

Michael Meeks michael.meeks at novell.com
Fri Feb 11 06:05:51 PST 2011

On Fri, 2011-02-11 at 12:58 +0000, Caolán McNamara wrote:
> boost::hash (and I think std::hash in c++0x at least) with
> hash<const char*>(str) will hash the *pointer* str, not the
> contents of str.

	That sounds like a work of genius as a default ;-)

	I wonder if we can add some sort of lint check for that ?

> Which is why fontwork disappeared recently for me.

	Nice catch,


 michael.meeks at novell.com  <><, Pseudo Engineer, itinerant idiot

More information about the LibreOffice mailing list