Hash value issue with db::Text fixed.

This commit is contained in:
Matthias Köfferlein 2018-09-07 22:29:54 +02:00
parent bd6234b699
commit c53c3ae7cf
1 changed files with 2 additions and 1 deletions

View File

@ -197,7 +197,8 @@ namespace std
h = hfunc (int (o.valign ()), h);
h = hfunc (o.trans ().rot (), h);
h = hfunc (o.trans ().disp (), h);
h = hfunc (hfunc (o.string ()), h);
// NOTE: using std::string for the value makes sure the default hasher doesn't use the pointer value
h = hfunc (hfunc (std::string (o.string ())), h);
return h;
}
};