| 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, |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 template<typename V> static NoType checkHasTraceMethod(...); | 299 template<typename V> static NoType checkHasTraceMethod(...); |
| 300 public: | 300 public: |
| 301 static const bool value = sizeof(YesType) == sizeof(checkHasTraceMethod<T>(0
)); | 301 static const bool value = sizeof(YesType) == sizeof(checkHasTraceMethod<T>(0
)); |
| 302 }; | 302 }; |
| 303 | 303 |
| 304 // Convenience template wrapping the NeedsTracingLazily template in | 304 // Convenience template wrapping the NeedsTracingLazily template in |
| 305 // Collection Traits. It helps make the code more readable. | 305 // Collection Traits. It helps make the code more readable. |
| 306 template<typename Traits> | 306 template<typename Traits> |
| 307 class ShouldBeTraced { | 307 class ShouldBeTraced { |
| 308 public: | 308 public: |
| 309 static const bool value = Traits::template NeedsTracingLazily<void>::value; | 309 static const bool value = Traits::template NeedsTracingLazily<>::value; |
| 310 }; | 310 }; |
| 311 | 311 |
| 312 } // namespace WTF | 312 } // namespace WTF |
| 313 | 313 |
| 314 #endif // TypeTraits_h | 314 #endif // TypeTraits_h |
| OLD | NEW |