Changeset View
Changeset View
Standalone View
Standalone View
libraries/source/spidermonkey/include-win32-debug/js/Vector.h
Show All 28 Lines | |||||
//template <> | //template <> | ||||
//struct TypeIsGCThing<JS::Value> : mozilla::TrueType | //struct TypeIsGCThing<JS::Value> : mozilla::TrueType | ||||
//{}; | //{}; | ||||
} // namespace detail | } // namespace detail | ||||
template <typename T, | template <typename T, | ||||
size_t MinInlineCapacity = 0, | size_t MinInlineCapacity = 0, | ||||
class AllocPolicy = TempAllocPolicy | class AllocPolicy = TempAllocPolicy, | ||||
// 1800 is MSVC2013. Optimistically assume MSVC2015 (1900) is fixed. | |||||
// If you're porting to MSVC2015 and this doesn't work, extend the | |||||
// condition to encompass that additional version (but *do* keep the | |||||
// version-check so we know when MSVC's fixed). | |||||
#if !defined(_MSC_VER) || (1800 <= _MSC_VER && _MSC_VER <= 1800) | |||||
// Don't use this with JS::Value! Use JS::AutoValueVector instead. | // Don't use this with JS::Value! Use JS::AutoValueVector instead. | ||||
, typename = typename mozilla::EnableIf<!detail::TypeIsGCThing<T>::value>::Type | typename = typename mozilla::EnableIf<!detail::TypeIsGCThing<T>::value>::Type | ||||
#endif | |||||
> | > | ||||
using Vector = mozilla::Vector<T, MinInlineCapacity, AllocPolicy>; | using Vector = mozilla::Vector<T, MinInlineCapacity, AllocPolicy>; | ||||
} // namespace js | } // namespace js | ||||
#endif /* js_Vector_h */ | #endif /* js_Vector_h */ |
Wildfire Games · Phabricator