• davidben's avatar
    Align base::hash_map with C++11, part 1. · 254bd40b
    davidben authored
    C++11's std::hash provides a default hash for T* that hashes by pointer value.
    So does MSVC's stdext::hash_value, but not GCC's __gnu_cxx::hash (and STLPort's
    std::hash). To align non-MSVC with both MSVC and the standard, provide a
    default hash for pointers. This removes a lot of GCC-specific hash definitions.
    
    Confusingly, all three provide a default hash for const char * that hashes as C
    string, while not changing their equality. This CL does not change this on any
    platform.
    
    BUG=420242
    
    Review URL: https://codereview.chromium.org/630503002
    
    Cr-Commit-Position: refs/heads/master@{#299217}
    254bd40b
async_pixel_transfer_manager.h 3.56 KB