Changeset 59463 in webkit
- Timestamp:
- May 14, 2010 4:24:05 AM (14 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r59358 r59463 1 2010-05-10 Jocelyn Turcotte <jocelyn.turcotte@nokia.com> 2 3 Reviewed by Alexey Proskuryakov. 4 5 Fix a VS2010 assert in std::copy 6 https://bugs.webkit.org/show_bug.cgi?id=38630 7 8 The assert complains that the output iterator is null. 9 10 * wtf/Vector.h: 11 (WTF::::operator): 12 1 13 2010-05-13 Maciej Stachowiak <mjs@apple.com> 2 14 -
trunk/JavaScriptCore/wtf/Vector.h
r58307 r59463 687 687 } 688 688 689 // Works around an assert in VS2010. See https://connect.microsoft.com/VisualStudio/feedback/details/558044/std-copy-should-not-check-dest-when-first-last 690 #if COMPILER(MSVC) && defined(_ITERATOR_DEBUG_LEVEL) && _ITERATOR_DEBUG_LEVEL 691 if (!begin()) 692 return *this; 693 #endif 694 689 695 std::copy(other.begin(), other.begin() + size(), begin()); 690 696 TypeOperations::uninitializedCopy(other.begin() + size(), other.end(), end()); … … 710 716 } 711 717 718 // Works around an assert in VS2010. See https://connect.microsoft.com/VisualStudio/feedback/details/558044/std-copy-should-not-check-dest-when-first-last 719 #if COMPILER(MSVC) && defined(_ITERATOR_DEBUG_LEVEL) && _ITERATOR_DEBUG_LEVEL 720 if (!begin()) 721 return *this; 722 #endif 723 712 724 std::copy(other.begin(), other.begin() + size(), begin()); 713 725 TypeOperations::uninitializedCopy(other.begin() + size(), other.end(), end());
Note: See TracChangeset
for help on using the changeset viewer.