]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/lockdep: drop hash<pthread_t> specialization
authorKefu Chai <kchai@redhat.com>
Sat, 24 Feb 2018 03:31:47 +0000 (11:31 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 24 Feb 2018 03:34:04 +0000 (11:34 +0800)
commita9ecfb1b8295e06d625037b0faa1e3985113b43c
tree936833d4fc2714c6bf867ccc51c853cc3cfccc71
parent2b8450089c5ca7c98f48b991db9cff74d989646b
common/lockdep: drop hash<pthread_t> specialization

quote from http://en.cppreference.com/w/cpp/utility/hash:

> Each standard library header that declares the template std::hash
> provides enabled specializations of std::hash for std::nullptr
> and all cv-unqualified arithmetic types (including any extended
> integer types), all enumeration types, and all pointer types.

since we've switched to C++17. this full specialization is not necessary
anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/lockdep.cc