| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 * | 19 * |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #ifndef TypeTraits_h | 22 #ifndef TypeTraits_h |
| 23 #define TypeTraits_h | 23 #define TypeTraits_h |
| 24 | 24 |
| 25 #include <wtf/Platform.h> | 25 #include "wtf/Platform.h" |
| 26 | 26 |
| 27 #if (defined(__GLIBCXX__) && (__GLIBCXX__ >= 20070724) && defined(__GXX_EXPERIME
NTAL_CXX0X__)) || (defined(_MSC_VER) && (_MSC_VER >= 1600)) | 27 #if (defined(__GLIBCXX__) && (__GLIBCXX__ >= 20070724) && defined(__GXX_EXPERIME
NTAL_CXX0X__)) || (defined(_MSC_VER) && (_MSC_VER >= 1600)) |
| 28 #include <type_traits> | 28 #include <type_traits> |
| 29 #if defined(__GLIBCXX__) && (__GLIBCXX__ >= 20070724) && defined(__GXX_EXPERIMEN
TAL_CXX0X__) | 29 #if defined(__GLIBCXX__) && (__GLIBCXX__ >= 20070724) && defined(__GXX_EXPERIMEN
TAL_CXX0X__) |
| 30 #include <tr1/memory> | 30 #include <tr1/memory> |
| 31 #endif | 31 #endif |
| 32 #endif | 32 #endif |
| 33 | 33 |
| 34 namespace WTF { | 34 namespace WTF { |
| 35 | 35 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 static const bool value = IsPod<RemoveConstVolatile<T> >::value; | 252 static const bool value = IsPod<RemoveConstVolatile<T> >::value; |
| 253 }; | 253 }; |
| 254 template <typename T> struct HasTrivialDestructor { | 254 template <typename T> struct HasTrivialDestructor { |
| 255 static const bool value = IsPod<RemoveConstVolatile<T> >::value; | 255 static const bool value = IsPod<RemoveConstVolatile<T> >::value; |
| 256 }; | 256 }; |
| 257 #endif | 257 #endif |
| 258 | 258 |
| 259 } // namespace WTF | 259 } // namespace WTF |
| 260 | 260 |
| 261 #endif // TypeTraits_h | 261 #endif // TypeTraits_h |
| OLD | NEW |