stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Farid Zaripov <>
Subject RE: [PATCH] std::swap (std::container&, std::container&) in MSVC 7.0
Date Thu, 28 Sep 2006 15:19:22 GMT
 > -----Original Message-----
 > From: Martin Sebor []
 > Sent: Thursday, September 28, 2006 5:29 PM
 > To:
 > Subject: Re: [PATCH] std::swap (std::container&,
 > std::container&) in MSVC 7.0
 > Okay, so it doesn't sound like we need it. We can add it
 > if/when we find a compiler that doesn't support inline
 > friends and that also doesn't do partial ordering of function
 > templates.

   The updated (with updating the licensing header) patch is attached:

    * deque: Added #ifndef _RWSTD_NO_PART_SPEC_OVERLOAD/#endif around the
    function std::swap<T, A> (std::deque<T, A>&, std::deque<T, A>&);
    [_RWSTD_NO_PART_SPEC_OVERLOAD]: Added function std::swap
    (std::deque&, std::deque&)
    * list [_RWSTD_NO_PART_SPEC_OVERLOAD]: Added function
    std::swap (std::list&, std::list&)
    * map [_RWSTD_NO_PART_SPEC_OVERLOAD]: Added functions
    std::swap (std::map&, std::map&) and
    std::swap (std::multimap&, std::multimap&)
    * set [_RWSTD_NO_PART_SPEC_OVERLOAD]: Added functions
    std::swap (std::set&, std::set&) and
    std::swap (std::multiset&, std::multiset&)
    * string [_RWSTD_NO_PART_SPEC_OVERLOAD]: Added function
    std::swap (std::string&, std::string&)
    * vector [_RWSTD_NO_PART_SPEC_OVERLOAD]: Added functions
    std::swap (std::vector&, std::vector&) and
    std::swap (std::vector<bool>&, std::vector<bool>&)


View raw message