Lot of changes

This commit is contained in:
Ley0k 2016-08-13 18:32:13 +02:00
parent db1cfb675c
commit 3436b47544
43 changed files with 1249 additions and 123 deletions

View file

@ -112,8 +112,20 @@ int HashCode< float >( const float& key )
return *( int * )&key;
}
template<>
int HashCode< double >( const double& key )
{
return *( int * )&key;
}
template<>
int HashCode< str >( const str& key )
{
return HashCode< const char * >( key.c_str() );
}
template<>
int HashCode< Vector >( const Vector& key )
{
return ( int )( ( key[ 0 ] + key[ 1 ] + key[ 2 ] ) / 3 );
}