Changeset 128900 in webkit for trunk/Source/JavaScriptCore/runtime/JSCell.h
- Timestamp:
- Sep 18, 2012, 9:13:11 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSCell.h
r128851 r128900 34 34 #include "WriteBarrier.h" 35 35 #include <wtf/Noncopyable.h> 36 #include <wtf/TypeTraits.h> 36 37 37 38 namespace JSC { … … 309 310 } 310 311 311 #if COMPILER(CLANG)312 312 template<class T> 313 313 struct NeedsDestructor { 314 static const bool value = ! __has_trivial_destructor(T);314 static const bool value = !WTF::HasTrivialDestructor<T>::value; 315 315 }; 316 #else317 // Write manual specializations for this struct template if you care about non-clang compilers.318 template<class T>319 struct NeedsDestructor {320 static const bool value = true;321 };322 #endif323 316 324 317 template<typename T>
Note:
See TracChangeset
for help on using the changeset viewer.