Ignore:
Timestamp:
Dec 26, 2005, 2:08:52 PM (19 years ago)
Author:
hyatt
Message:

Fix win32 bustage. ifdef the swap function for std pairs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kxmlcore/HashTable.h

    r11762 r11768  
    175175    using std::swap;
    176176
    177     // swap pairs by component, in case of pair members that specialize swap
     177#ifndef WIN32
     178    // Visual C++ has a swap for pairs defined.
     179        // swap pairs by component, in case of pair members that specialize swap
    178180    template<typename T, typename U>
    179181    inline void swap(pair<T, U>& a, pair<T, U>& b)
     
    182184        swap(a.second, b.second);
    183185    }
     186#endif
    184187
    185188    template<typename T, bool useSwap>
Note: See TracChangeset for help on using the changeset viewer.