diff --git a/doc/main/tbb_userguide/concurrent_hash_map.rst b/doc/main/tbb_userguide/concurrent_hash_map.rst index cd8482ffff..8d9ba3a1b7 100644 --- a/doc/main/tbb_userguide/concurrent_hash_map.rst +++ b/doc/main/tbb_userguide/concurrent_hash_map.rst @@ -30,14 +30,14 @@ string occurs in the array ``Data``. // Structure that defines hashing and comparison operations for user's type. struct MyHashCompare { - static size_t hash( const string& x ) { + size_t hash( const string& x ) const { size_t h = 0; for( const char* s = x.c_str(); *s; ++s ) h = (h*17)^*s; return h; } //! True if strings are equal - static bool equal( const string& x, const string& y ) { + bool equal( const string& x, const string& y ) const { return x==y; } }; @@ -128,4 +128,4 @@ any other extant accesses on ``key``. .. toctree:: :maxdepth: 4 - ../tbb_userguide/More_on_HashCompare \ No newline at end of file + ../tbb_userguide/More_on_HashCompare