avoid std::_Hash_impl
authorHans Fugal <fugalh@fb.com>
Thu, 8 Jan 2015 22:46:26 +0000 (14:46 -0800)
committerViswanath Sivakumar <viswanath@fb.com>
Tue, 13 Jan 2015 19:01:05 +0000 (11:01 -0800)
commit32f335ca11e9fde0aac87a5b5794ccbf6191fd2e
tree4566b0be664e30f887b12a6601b9861b0381df6c
parenta19421840b8de191d988d8b559ee3689e2e2aa0e
avoid std::_Hash_impl

Summary:
Default Yosemite clang has no `std::_Hash_impl`, which is an internal implementation detail anyway.

@davejwatson you might have a different suggestion about how to implement this without that function, or how to test if it exists and do this only if it doesn't. This is probably not the most efficient approach, since it copies the string.

Test Plan:
builds
inspection
fbgs doesn't turn up many results (only recent wangle ssl code really) so I don't think this will be a big perf regression if we just go with it. But if I'm wrong, we can gate it on `#if __APPLE__` or something.

Reviewed By: davejwatson@fb.com

Subscribers: folly-diffs@, fugalh, exa, davejwatson

FB internal diff: D1767052

Signature: t1:1767052:1420738784:e219ebff7aec8682b24c15a03b47077e1559c1ab
folly/wangle/acceptor/DomainNameMisc.h