OLD | NEW |
1 // Copyright 2015 The Crashpad Authors. All rights reserved. | 1 // Copyright 2015 The Crashpad Authors. All rights reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 #else | 24 #else |
25 | 25 |
26 namespace std { | 26 namespace std { |
27 | 27 |
28 template <class T> | 28 template <class T> |
29 struct remove_reference { using type = T; }; | 29 struct remove_reference { using type = T; }; |
30 template <class T> | 30 template <class T> |
31 struct remove_reference<T&> { using type = T; }; | 31 struct remove_reference<T&> { using type = T; }; |
32 | 32 |
| 33 template <typename T, typename S> |
| 34 struct is_same { enum { value = false }; }; |
| 35 template <typename T> |
| 36 struct is_same<T, T> { enum { value = true }; }; |
| 37 |
33 } // namespace std | 38 } // namespace std |
34 | 39 |
35 #endif // CXX_LIBRARY_VERSION | 40 #endif // CXX_LIBRARY_VERSION |
36 | 41 |
37 #endif // CRASHPAD_COMPAT_NON_CXX11_LIB_TYPE_TRAITS_ | 42 #endif // CRASHPAD_COMPAT_NON_CXX11_LIB_TYPE_TRAITS_ |
OLD | NEW |