Various fixes
Former-commit-id: b375cb70e49effc001fb781028bd8b7d07044941 [formerly cbdadfbabd56bed8ffadbf3cbd7175e95908452f] Former-commit-id: 224bc14061ba65eff9b9d779104c5df95e63e905
This commit is contained in:
@@ -45,7 +45,7 @@ namespace Nz
|
||||
*/
|
||||
|
||||
inline String::SharedString::SharedString(std::size_t strSize) :
|
||||
capacity(strSize),
|
||||
capacity(strSize),
|
||||
size(strSize),
|
||||
string(new char[strSize + 1])
|
||||
{
|
||||
@@ -84,16 +84,15 @@ namespace Nz
|
||||
|
||||
namespace std
|
||||
{
|
||||
/*!
|
||||
* \brief Specialisation of std to hash
|
||||
* \return Result of the hash
|
||||
*
|
||||
* \param str String to hash
|
||||
*/
|
||||
|
||||
template<>
|
||||
struct hash<Nz::String>
|
||||
{
|
||||
/*!
|
||||
* \brief Specialisation of std to hash
|
||||
* \return Result of the hash
|
||||
*
|
||||
* \param str String to hash
|
||||
*/
|
||||
size_t operator()(const Nz::String& str) const
|
||||
{
|
||||
// Algorithme DJB2
|
||||
|
||||
Reference in New Issue
Block a user