summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libcxx/CREDITS.TXT5
-rw-r--r--libcxx/include/map4
2 files changed, 6 insertions, 3 deletions
diff --git a/libcxx/CREDITS.TXT b/libcxx/CREDITS.TXT
index 7f3de7438ba..a5a9b41cab2 100644
--- a/libcxx/CREDITS.TXT
+++ b/libcxx/CREDITS.TXT
@@ -12,4 +12,7 @@ N: Howard Hinnant
E: hhinnant@apple.com
D: Architect and primary author of libc++
-
+N: Marshall Clow
+E: marshall@idio.com
+E: mclow@qualcomm.com
+D: Minor patches and bug fixes.
diff --git a/libcxx/include/map b/libcxx/include/map
index 64c2808757e..387c6b501b5 100644
--- a/libcxx/include/map
+++ b/libcxx/include/map
@@ -350,7 +350,7 @@ template <class _Key, class _Tp, class _Compare, bool = is_empty<_Compare>::valu
class __map_value_compare
: private _Compare
{
- typedef pair<_Key, _Tp> _P;
+ typedef pair<typename std::remove_const<_Key>::type, _Tp> _P;
typedef pair<const _Key, _Tp> _CP;
public:
_LIBCPP_INLINE_VISIBILITY
@@ -393,7 +393,7 @@ class __map_value_compare<_Key, _Tp, _Compare, false>
{
_Compare comp;
- typedef pair<_Key, _Tp> _P;
+ typedef pair<typename std::remove_const<_Key>::type, _Tp> _P;
typedef pair<const _Key, _Tp> _CP;
public:
OpenPOWER on IntegriCloud