Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(459)

Side by Side Diff: third_party/crashpad/crashpad/compat/non_cxx11_lib/type_traits

Issue 1774443002: Replace template_util.h stuff with C++11 <type_traits> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert unrelated whitespace change Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « third_party/crashpad/README.chromium ('k') | third_party/crashpad/crashpad/util/win/process_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698