aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/stubs/hash.h
diff options
context:
space:
mode:
authorGravatar Peter Collingbourne <pcc@google.com>2018-01-17 16:05:47 -0800
committerGravatar Peter Collingbourne <pcc@google.com>2018-01-17 16:05:49 -0800
commit3ba21cd5f724528ab8792c05bda6e06ceb557bff (patch)
treea36bcbf4c7eb77662b5ad6a36fda92442bc77e8b /src/google/protobuf/stubs/hash.h
parent47b7d2c7cadf74ceec90fc5042232819cd0dd557 (diff)
Add support for libc++ on Windows.
This disables a couple of workarounds which are only necessary with MSVC's standard library and cause problems with libc++.
Diffstat (limited to 'src/google/protobuf/stubs/hash.h')
-rw-r--r--src/google/protobuf/stubs/hash.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/google/protobuf/stubs/hash.h b/src/google/protobuf/stubs/hash.h
index 218cd948..ec1f9810 100644
--- a/src/google/protobuf/stubs/hash.h
+++ b/src/google/protobuf/stubs/hash.h
@@ -235,7 +235,8 @@ class hash_set : public std::set<Key, HashFcn> {
HashFcn hash_function() const { return HashFcn(); }
};
-#elif defined(_MSC_VER) && !defined(_STLPORT_VERSION)
+#elif defined(_MSC_VER) && !defined(_STLPORT_VERSION) && \
+ !(defined(_LIBCPP_STD_VER) && _LIBCPP_STD_VER >= 11)
template <typename Key>
struct hash : public GOOGLE_PROTOBUF_HASH_COMPARE<Key> {